The attack is now fully configurable in attacks.json and the name for each attack is generated from the ritual crafting.

This commit is contained in:
Zed A. Shaw 2026-08-13 13:51:38 -04:00
parent adcfbb883e
commit 09b61f17a7
11 changed files with 77 additions and 45 deletions

28
assets/attacks.json Normal file
View file

@ -0,0 +1,28 @@
{
"MAGICK_FIRE": {
"animation": "burning_animation",
"shader": "flame",
"components": [
{"_type": "Sprite", "name": "burning_animation", "scale": 1.0},
{"_type": "LightSource", "strength": 25, "radius": 2.0},
{"_type": "Temporary", "is": true}
]
},
"MAGICK_LIGHTNING": {
"animation": "lightning_animation",
"shader": "lightning",
"components": [
{"_type": "Sprite", "name": "lightning_animation", "scale": 1.0},
{"_type": "LightSource", "strength": 35, "radius": 2.5},
{"_type": "Temporary", "is": true}
]
},
"PHYSICAL_NONE": {
"animation": "lightning_animation",
"shader": "flame",
"components": [
{"_type": "Sprite", "name": "lightning_animation", "scale": 1.0},
{"_type": "Temporary", "is": true}
]
}
}

View file

@ -6,12 +6,12 @@
"foreground": "enemies/fg:player",
"background": "color:transparent"
},
{"_type": "Combat", "hp": 200, "max_hp": 200, "ap": 0, "max_ap": 12, "ap_delta": 6, "damage": 50, "dead": false, "attack_rating": 0.60, "toughness_rating": 0.0},
{"_type": "Combat", "hp": 200, "max_hp": 200, "ap": 0, "max_ap": 12, "ap_delta": 6, "damage": 500, "dead": false, "attack_rating": 1.0, "toughness_rating": 0.0},
{"_type": "Motion", "dx": 0, "dy": 0, "random": false},
{"_type": "Collision", "has": true},
{"_type": "EnemyConfig", "ai_script": "Host::actions", "ai_start_name": "Host::initial_state", "ai_goal_name": "Host::final_state"},
{"_type": "Personality", "hearing_distance": 5, "tough": false},
{"_type": "LightSource", "strength": 35, "radius": 2.0}
{"_type": "LightSource", "strength": 20, "radius": 1.0}
]
},
"GOLD_SAVIOR": {