From b99f8343fc3bb9b1869ccf3bd5016c15d50c4f57 Mon Sep 17 00:00:00 2001 From: cecilkorik Date: Wed, 10 Nov 2021 00:16:05 -0500 Subject: [PATCH] created third training type for misc skills --- assets/data/aspects/sites.json | 6 +- .../effects/maethalion_boost_trainMisc.json | 265 ++++++++++++++++++ assets/text/aspects/aspects_en_GB.properties | 4 + ...aethalion_boost_trainMisc_en_GB.properties | 9 + 4 files changed, 282 insertions(+), 2 deletions(-) create mode 100644 assets/data/effects/maethalion_boost_trainMisc.json create mode 100644 assets/text/aspects/aspects_en_GB.properties create mode 100644 assets/text/effects/maethalion_boost_trainMisc_en_GB.properties diff --git a/assets/data/aspects/sites.json b/assets/data/aspects/sites.json index c9817bd..b427019 100644 --- a/assets/data/aspects/sites.json +++ b/assets/data/aspects/sites.json @@ -5,7 +5,9 @@ "effects": [ "craftAtTown", "maethalion_boost_trainDamage", - "maethalion_boost_trainDefense" - ] + "maethalion_boost_trainDefense", + "maethalion_boost_trainMisc" + ], + "stats": {} } ] \ No newline at end of file diff --git a/assets/data/effects/maethalion_boost_trainMisc.json b/assets/data/effects/maethalion_boost_trainMisc.json new file mode 100644 index 0000000..ddcc63e --- /dev/null +++ b/assets/data/effects/maethalion_boost_trainMisc.json @@ -0,0 +1,265 @@ +{ +"id": "maethalion_boost_trainMisc", +"info": { + "dataVersion": 1, + "sourceFile": "maethalion_boost_trainMisc", + "modId": "cecilkorik_training", + "author": "cecilkorik" +}, +"type": "OVERLAND_ABILITY", +"verb": "MANEUVER", +"ability": { "icon": "battledance", "category": "crafting", "priority": "0" }, +"targets": [ + { + "template": "SELF_SITE", + "aspects": [ "SELF", "workingStation", "NO_JOBS_ACTIVE" ], + "aspectValues": [ + { "id": "infestedTile*", "forbidden": true } + ], + "forbidJobIds": [ "maethalion_boost_job_train*" ] + }, + { "role": "target", "template": "OVERLAND_TILE", "range": "0" }, + { + "template": "CHOICE", + "promptScript": [ + { + "class": "comicNode_Panel", + "panel": { + "size": "full", + "bg": "comicBG_classAbility_hunter.jpg", + "actorSlots": [ + { + "assetSpec": "asset:ui/misc/battleModifier_courage.png", + "role": null, + "focus": "foot", + "anchor": { "x": 0.238, "y": 0.393 }, + "size": 0.3, + "nameTag": "none", + "foot": { "rotate": 0 } + }, + { + "assetSpec": "figure:human/items/item_axe_lumber.png", + "role": null, + "focus": "foot", + "anchor": { "x": 0.119, "y": 0.234 }, + "size": 0.3499, + "nameTag": "none", + "foot": { "rotate": -30 } + }, + { + "assetSpec": "scenery:drauven_basketSpears.png", + "role": null, + "focus": "foot", + "anchor": { "x": 0.374, "y": 0.274 }, + "size": 0.4297, + "nameTag": "none" + }, + { + "assetSpec": "item:item_sword_old.png", + "role": null, + "focus": "foot", + "anchor": { "x": 0.066, "y": 0.284 }, + "size": 0.3499, + "drawDepth": 6, + "nameTag": "none", + "foot": { "rotate": -144.455 } + }, + { + "assetSpec": "figure:human/items/item_staff_crook.png", + "role": null, + "focus": "foot", + "anchor": { "x": 0.077, "y": 0.299 }, + "size": 0.2251, + "drawDepth": 7, + "nameTag": "none" + } + ], + "textSlots": [ + { + "textSourceFile": "maethalion_boost_trainMisc", + "textKey": "~01~prompt~panel_001~1_narration", + "style": "narration", + "padXFraction": 0.461, + "padYFraction": 0.332, + "widthFraction": 0.5 + }, + { + "textSourceFile": "maethalion_boost_trainMisc", + "textKey": "~01~prompt~panel_001~2_darken", + "style": "darken", + "padXFraction": 0.25, + "padYFraction": 0.04, + "shrinkToFitText": true + } + ] + } + } + ], + "options": [ + { + "id": "one", + "script": [ + { + "class": "comicNode_Panel", + "panel": { + "size": "fourth", + "bg": "comicBG_abstractSky.jpg", + "actorSlots": [ + { + "assetSpec": "asset:ui/misc/battleModifier_fortitude.png", + "role": null, + "focus": "foot", + "anchor": { "x": 0.5, "y": 0.45 }, + "size": 0.2, + "nameTag": "none" + } + ], + "textSlots": [ + { + "textSourceFile": "maethalion_boost_trainMisc", + "textKey": "~02~choice_one~panel_001~1_narration", + "style": "narration" + } + ] + } + } + ], + "ifTargetIsPresent": "self" + }, + { + "id": "two", + "script": [ + { + "class": "comicNode_Panel", + "panel": { + "size": "fourth", + "bg": "comicBG_abstractRadialYellow.jpg", + "actorSlots": [ + { + "assetSpec": "asset:ui/misc/battleModifier_fortitude.png", + "role": null, + "focus": "foot", + "anchor": { "x": 0.5, "y": 0.45 }, + "size": 0.2, + "nameTag": "none" + } + ], + "textSlots": [ + { + "textSourceFile": "maethalion_boost_trainMisc", + "textKey": "~03~choice_two~panel_001~1_narration", + "style": "narration" + } + ] + } + } + ], + "ifTargetIsPresent": "self" + }, + { + "id": "three", + "script": [ + { + "class": "comicNode_Panel", + "panel": { + "size": "fourth", + "bg": "comicBG_abstractOrangeLight.jpg", + "actorSlots": [ + { + "assetSpec": "asset:ui/misc/battleModifier_fortitude.png", + "role": null, + "focus": "foot", + "anchor": { "x": 0.5, "y": 0.45 }, + "size": 0.2, + "nameTag": "none" + } + ], + "textSlots": [ + { + "textSourceFile": "maethalion_boost_trainMisc", + "textKey": "~04~choice_three~panel_001~1_narration", + "style": "narration" + } + ] + } + } + ], + "ifTargetIsPresent": "self" + }, + { + "id": "cancel", + "script": [ + { + "class": "comicNode_Panel", + "panel": { + "size": "fourth", + "bgAuto": "atSite", + "textSlots": [ + { + "textSourceFile": "maethalion_boost_trainMisc", + "textKey": "~05~choice_cancel~panel_001~1_darken", + "style": "darken", + "padXFraction": 0.25, + "padYFraction": 0.45, + "widthFraction": 0.5 + } + ] + } + } + ], + "uiCancel": true + } + ] + } +], +"outcomes": [ + { + "class": "IfPlayerChose", + "ifPlayerChose": "one", + "then": { + "class": "DoAll", + "outcomes": [ + { + "class": "NewJob", + "effectId": "maethalion_boost_job_train|Athletics|SPEED|0.5", + "post": "self", + "injectedRoles": [ "self", "target" ], + "promptSlotsImmediately": true + } + ] + } + }, + { + "class": "IfPlayerChose", + "ifPlayerChose": "two", + "then": { + "class": "DoAll", + "outcomes": [ + { + "class": "NewJob", + "effectId": "maethalion_boost_job_train|Charisma|CHARISMA|5.0", + "post": "self", + "injectedRoles": [ "self", "target" ], + "promptSlotsImmediately": true + } + ] + } + }, + { + "class": "IfPlayerChose", + "ifPlayerChose": "three", + "then": { + "class": "DoAll", + "outcomes": [ + { + "class": "NewJob", + "effectId": "maethalion_boost_job_train|Tenacity|TENACITY|5.0", + "post": "self", + "injectedRoles": [ "self", "target" ], + "promptSlotsImmediately": true + } + ] + } + } +] +} \ No newline at end of file diff --git a/assets/text/aspects/aspects_en_GB.properties b/assets/text/aspects/aspects_en_GB.properties new file mode 100644 index 0000000..84f6981 --- /dev/null +++ b/assets/text/aspects/aspects_en_GB.properties @@ -0,0 +1,4 @@ +#suppress inspection "UnusedProperty" for whole file + +maethalion_boost_train.blurb=$param0 +$param2 +maethalion_boost_train.name=Training diff --git a/assets/text/effects/maethalion_boost_trainMisc_en_GB.properties b/assets/text/effects/maethalion_boost_trainMisc_en_GB.properties new file mode 100644 index 0000000..9c6db80 --- /dev/null +++ b/assets/text/effects/maethalion_boost_trainMisc_en_GB.properties @@ -0,0 +1,9 @@ +#suppress inspection "UnusedProperty" for whole file +.longName=Train up your Hero's Abilities +.name= +~01~prompt~panel_001~1_narration=Create a Training Job at this Location\n\n - Train [b][green]Movement Speed[][] + 0.5\n - Train [b][white]Charisma[][] + 5\n - Train [b][orange]Tenacity[][] + 5\n\n(Usually takes 10 about days for a single Hero) +~01~prompt~panel_001~2_darken=[header][gold]Train up your Hero's Abilities![][] +~02~choice_one~panel_001~1_narration=Train [b][green]Movement[][] + 0.5 +~03~choice_two~panel_001~1_narration=Train [b][white]Charisma[] []+ 5 +~04~choice_three~panel_001~1_narration=Train [b][orange]Tenacity[][] + 5 +~05~choice_cancel~panel_001~1_darken=(Not Now)