Skip to content

Commit

Permalink
fix yugg death without killer causes error
Browse files Browse the repository at this point in the history
  • Loading branch information
GuardianDll authored Jul 31, 2024
1 parent 836a1ce commit dacdecc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion doc/EFFECT_ON_CONDITION.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit dacdecc

Please sign in to comment.