From adbb5a474e26ba1f6fdeeda7e5328b6f343578f5 Mon Sep 17 00:00:00 2001 From: TheLastScrub <67403321+TheLastScrub@users.noreply.github.com> Date: Sun, 20 Mar 2022 15:14:15 -0700 Subject: [PATCH] ready to package 1.0.5 --- CHANGELOG.md | 1 + css/deltagreen.css | 52 +++++++++++++++++++++++++++++++++ lang/en.json | 11 +++++-- module/deltagreen.js | 4 +++ template.json | 6 ++++ templates/actor/cv-partial.html | 27 ++++++++++++++++- 6 files changed, 98 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bbcc308..5523265 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ * Enhancement - Added some buttons to the gear tab of the Agent's sheet that allow opening the compendiums for weapons or armor directly from the sheet. * Enhancement - Made tabs in nav bar, look a little bit more obviously like tabs. * Enhancement - Made it so that existing type skills are more editable now, to make using the pregens that have craft/language/science skills easier. +* Enhancement - Added some GM-only fields to the CV section of the Agent and NPC sheets that supports values recording in Impossible Landscapes ### Version 1.0.4 - 2022-02-05 diff --git a/css/deltagreen.css b/css/deltagreen.css index cf9060a..c243a54 100644 --- a/css/deltagreen.css +++ b/css/deltagreen.css @@ -845,4 +845,56 @@ input.item-sheet-short-input{ .add-typed-skill-button{ margin: 10px; +} + +.yellow-king{ + color: #a0912f; +} + +.yellow-sign{ + font-weight: bold; + text-shadow: 1px 1px #313a00; +} + +.yellow-king-rotate1{ + transform: rotate(3deg); +} + +.yellow-king-rotate4{ + transform: rotate(4deg); +} + +.yellow-king-rotate2{ + transform: rotate(-1deg); +} + +.yellow-king-rotate3{ + transform: rotate(5deg); +} + +.yellow-king-grid-9col{ + display: grid; + grid-template-columns: max-content 5px max-content max-content 20px max-content max-content 10px 35px; + align-items: center; + padding-bottom: 10px; +} + +.yellow-king-grid-5col{ + display: grid; + grid-template-columns: min-content 275px 20px min-content auto; + align-items: center; + padding-bottom: 10px; +} + +.yellow-king span{ + margin-right: 10px; +} + +.yellow-king input, .yellow-king select, .yellow-king textarea{ + color: #a0912f; + font-weight: bold; +} + +.yellow-king textarea:focus, .yellow-king input:focus{ + color: #a0912f; } \ No newline at end of file diff --git a/lang/en.json b/lang/en.json index 77fbb39..df166af 100644 --- a/lang/en.json +++ b/lang/en.json @@ -146,7 +146,7 @@ "DG.Tooltip.MaximumHP": "Maximum health is the average of STR + CON, rounded UP.", "DG.Tooltip.WP": "Willpower Points are mental fuel. Agents require Willpower Points to keep going despite exhaustion or mentally taxing situations. See page 47 of the Agent's Handbook for more detail.", "DG.Tooltip.MaximumWP": "Maximum WP is equal to POW.", - "DG.Tooltip.SanityLabel": "Click to roll a sanity check...", + "DG.Tooltip.SanityLabel": "Click to roll a SAN test...", "DG.Tooltip.CurrentSanityPartOne": "Current sanity, current breaking point is ", "DG.Tooltip.CurrentSanityPartTwo": ", click the SAN label above to roll a sanity check.", "DG.Tooltip.MaximumSanity": "Maximum sanity is equal to 99 - the Unnatural skill.", @@ -231,5 +231,12 @@ "DG.UnnaturalSheet.ShortDescriptionFallbackText": "Description of creature or creature type", "DG.UnnaturalSheet.Tabs.NotesTabLabel": "Skills & Notes", "DG.UnnaturalSheet.Tabs.ItemsTabLabel": "Attacks & Abilities", - "DG.NPCSheet.BreakPointAbbreviation": "BP" + "DG.NPCSheet.BreakPointAbbreviation": "BP", + + "DG.ImpossibleLanscapes.IHaveSeenThe": "I HAVE SEEN THE", + "DG.ImpossibleLanscapes.YellowSign": "YELLOW SIGN", + "DG.ImpossibleLanscapes.CorruptionFirstHalf": "Corrup", + "DG.ImpossibleLanscapes.CorruptionSecondHalf": "tion", + "DG.ImpossibleLanscapes.Gift": "Gift", + "DG.ImpossibleLanscapes.Insight": "Insight" } \ No newline at end of file diff --git a/module/deltagreen.js b/module/deltagreen.js index 979f2d6..cc67251 100644 --- a/module/deltagreen.js +++ b/module/deltagreen.js @@ -250,6 +250,10 @@ Hooks.once('init', async function() { }); }); +Handlebars.registerHelper('playerHasGamemasterPrivileges', function(){ + return game.user.isGM; +}); + Hooks.once("ready", async function() { // Wait to register hotbar drop hook on ready so that modules could register earlier if they want to Hooks.on("hotbarDrop", (bar, data, slot) => createDeltaGreenMacro(data, slot)); diff --git a/template.json b/template.json index 4d7bf68..4ef4c83 100644 --- a/template.json +++ b/template.json @@ -495,6 +495,12 @@ "sex": "", "age": "", "education": "" + }, + "corruption":{ + "value": 0, + "haveSeenTheYellowSign": false, + "gift": "", + "insight": "" } } }, diff --git a/templates/actor/cv-partial.html b/templates/actor/cv-partial.html index 3f94b61..5a94fa4 100644 --- a/templates/actor/cv-partial.html +++ b/templates/actor/cv-partial.html @@ -20,10 +20,35 @@ {{localize 'DG.CV.Education'}} + +{{#if (playerHasGamemasterPrivileges)}} + +
+ {{localize 'DG.ImpossibleLanscapes.IHaveSeenThe'}} + + {{localize 'DG.ImpossibleLanscapes.YellowSign'}} + + + {{localize 'DG.ImpossibleLanscapes.CorruptionFirstHalf'}} + {{localize 'DG.ImpossibleLanscapes.CorruptionSecondHalf'}} + + +
+ +
+ {{localize 'DG.ImpossibleLanscapes.Gift'}} + + + {{localize 'DG.ImpossibleLanscapes.Insight'}} + +
+ +{{/if}} +
{{localize 'DG.CV.PhysicalDescriptionLabel'}}
{{editor content=actor.data.data.physicalDescription target="data.physicalDescription" button=true owner=owner editable=editable}} -
+ \ No newline at end of file