diff --git a/data/json/effects_on_condition/nether_eocs/nether_monster_death.json b/data/json/effects_on_condition/nether_eocs/nether_monster_death.json index 9fb18e3bd572d..854d64f16da74 100644 --- a/data/json/effects_on_condition/nether_eocs/nether_monster_death.json +++ b/data/json/effects_on_condition/nether_eocs/nether_monster_death.json @@ -62,7 +62,7 @@ { "case": 4, "effect": [ - { "u_emit": "emit_fog_plume", "target_var": { "context_val": "death_loc" } }, + { "npc_emit": "emit_fog_plume", "target_var": { "context_val": "death_loc" } }, { "if": "player_see_u", "then": { diff --git a/doc/EFFECT_ON_CONDITION.md b/doc/EFFECT_ON_CONDITION.md index cdca9198fd9f1..d1581a41791bf 100644 --- a/doc/EFFECT_ON_CONDITION.md +++ b/doc/EFFECT_ON_CONDITION.md @@ -82,7 +82,7 @@ For example, `{ "npc_has_effect": "Shadow_Reveal" }`, used by shadow lieutenant, | mutation: "deactivated_eocs" | character (Character) | NONE | | mutation: "processed_eocs" | character (Character) | NONE | | recipe: "result_eocs" | crafter (Character) | NONE | -| monster death: "death_function" | killer (Creature) | victim (Creature) | +| monster death: "death_function" | killer (Creature, if exists, otherwise NONE)| victim (Creature) | Note that if monster was killed without a killer (falling anvil, explosion of a bomb etc), EoC would be built without alpha talker, so using EoC referencing `u_` would result in error. Use `has_alpha` condition before manipulating with alpha talker | ammo_effect: "eoc" | shooter (Creature) | victim (if exist, otherwise NONE) (Creature) | `proj_damage`, int, amount of damage projectile dealt. Detonation via SPECIAL_COOKOFF ammo effect return `proj_damage` as 1. Note that if projectile miss the target, EoC would be built without beta talker, so using EoC referencing `npc_` or `n_` would result in error. Use `has_beta` condition before manipulating with npc Some actions sent additional context variables, that can be used in EoC, in format: