Skip to content

Commit

Permalink
[Magiclysm] Rock trolls actually turn to stone (#78510)
Browse files Browse the repository at this point in the history
* Initial commit

* Add rock troll stone statue
  • Loading branch information
Standing-Storm authored Dec 12, 2024
1 parent a8af002 commit d7b4df7
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 1 deletion.
7 changes: 7 additions & 0 deletions data/mods/Magiclysm/effect_on_conditions/death_effects.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
{
"type": "effect_on_condition",
"id": "EOC_ROCK_TROLL_TURN_TO_STONE",
"effect": [ { "npc_transform_radius": 0, "ter_furn_transform": "ter_rock_troll_death" } ]
}
]
22 changes: 22 additions & 0 deletions data/mods/Magiclysm/furniture_and_terrain/furniture_stone.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"type": "furniture",
"id": "f_rock_troll_statue",
"name": "rock troll statue",
"description": "A massive block of stone in the shape of a rock troll, because it used to be a rock troll.",
"looks_like": "f_statue",
"symbol": "T",
"color": "dark_gray",
"move_cost_mod": -1,
"coverage": 50,
"required_str": 10,
"flags": [ "PLACE_ITEM", "BLOCKSDOOR", "MINEABLE", "SIGN" ],
"bash": {
"str_min": 16,
"str_max": 40,
"sound": "smash!",
"sound_fail": "thump.",
"items": [ { "item": "rock", "count": [ 2, 12 ] } ]
}
}
]
2 changes: 1 addition & 1 deletion data/mods/Magiclysm/monsters/monsters.json
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@
"melee_damage": [ { "damage_type": "bash", "amount": 18 } ],
"armor": { "bash": 15, "stab": 40, "cut": 35, "bullet": 13, "heat": -30, "acid": -30 },
"extend": { "flags": [ "SUNDEATH" ] },
"death_function": { "corpse_type": "NO_CORPSE", "message": "The %s turns to stone." }
"death_function": { "eoc": "EOC_ROCK_TROLL_TURN_TO_STONE", "corpse_type": "NO_CORPSE", "message": "The %s turns to stone." }
},
{
"id": "mon_troll_water",
Expand Down
7 changes: 7 additions & 0 deletions data/mods/Magiclysm/ter_fur_transform/death_effects.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
{
"type": "ter_furn_transform",
"id": "ter_rock_troll_death",
"furniture": [ { "result": "f_rock_troll_statue", "valid_furniture": [ "f_null", "f_straw_bed" ] } ]
}
]

0 comments on commit d7b4df7

Please sign in to comment.