cecilkorik_training/assets/data/effects/maethalion_boost_trainDefense.json

244 lines
No EOL
5.3 KiB
JSON

{
"id": "maethalion_boost_trainDefense",
"info": {
"dataVersion": 1,
"sourceFile": "maethalion_boost_trainDefense",
"modId": "wildermyth",
"author": "maethalion"
},
"type": "OVERLAND_ABILITY",
"verb": "MANEUVER",
"ability": { "icon": "endurance", "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_warrior.jpg",
"actorSlots": [
{
"assetSpec": "asset:ui/misc/battleModifier_endurance.png",
"role": null,
"focus": "foot",
"anchor": { "x": 0.239, "y": 0.402 },
"size": 0.3,
"nameTag": "none"
},
{
"assetSpec": "scenery:mannequins.png",
"role": null,
"focus": "foot",
"anchor": { "x": 0.17, "y": 0.403 },
"size": 0.5,
"nameTag": "none"
},
{
"assetSpec": "scenery:anvil.png",
"role": null,
"focus": "foot",
"anchor": { "x": 0.405, "y": 0.138 },
"size": 0.5,
"nameTag": "none"
}
],
"textSlots": [
{
"textSourceFile": "maethalion_boost_trainDefense",
"textKey": "~01~prompt~panel_001~1_narration",
"style": "narration",
"padXFraction": 0.461,
"padYFraction": 0.332,
"widthFraction": 0.5
},
{
"textSourceFile": "maethalion_boost_trainDefense",
"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_caveBlue.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_trainDefense",
"textKey": "~02~choice_one~panel_001~1_narration",
"style": "narration"
}
]
}
}
],
"ifTargetIsPresent": "self"
},
{
"id": "two",
"script": [
{
"class": "comicNode_Panel",
"panel": {
"size": "fourth",
"bg": "comicBG_class_mystic.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_trainDefense",
"textKey": "~03~choice_two~panel_001~1_narration",
"style": "narration"
}
]
}
}
],
"ifTargetIsPresent": "self"
},
{
"id": "three",
"script": [
{
"class": "comicNode_Panel",
"panel": {
"size": "fourth",
"bg": "comicBG_abstractDkGreen.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_trainDefense",
"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_trainDefense",
"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|ARMOR|1.0",
"post": "self",
"injectedRoles": [ "self", "target" ],
"promptSlotsImmediately": true
}
]
}
},
{
"class": "IfPlayerChose",
"ifPlayerChose": "two",
"then": {
"class": "DoAll",
"outcomes": [
{
"class": "NewJob",
"effectId": "maethalion_boost_job_train|WARDING|1.0",
"post": "self",
"injectedRoles": [ "self", "target" ],
"promptSlotsImmediately": true
}
]
}
},
{
"class": "IfPlayerChose",
"ifPlayerChose": "three",
"then": {
"class": "DoAll",
"outcomes": [
{
"class": "NewJob",
"effectId": "maethalion_boost_job_train|HEALTH|1.0",
"post": "self",
"injectedRoles": [ "self", "target" ],
"promptSlotsImmediately": true
}
]
}
}
]
}