|
654 | 654 | "condition": { "compare_string": [ "ANATHEMA_WEAKNESS_NEED_VAMPIRE_BLOOD", { "context_val": "trait" } ] },
|
655 | 655 | "effect": [ { "u_message": "You feel a growing thirst for the blood of vampires.", "type": "bad" } ]
|
656 | 656 | },
|
| 657 | + { |
| 658 | + "type": "effect_on_condition", |
| 659 | + "id": "EOC_VAMPIRE_ANATHEMA_BURN_IN_SUNLIGHT", |
| 660 | + "eoc_type": "EVENT", |
| 661 | + "required_event": "avatar_moves", |
| 662 | + "condition": { |
| 663 | + "and": [ |
| 664 | + { "u_has_trait": "ANATHEMA_WEAKNESS_SUN_BURN" }, |
| 665 | + "is_day", |
| 666 | + "u_is_outside", |
| 667 | + { "not": { "is_weather": "blotted_sun" } } |
| 668 | + ] |
| 669 | + }, |
| 670 | + "effect": [ |
| 671 | + { "u_add_effect": "effect_slain_by_the_sun", "duration": "PERMANENT" }, |
| 672 | + { |
| 673 | + "if": { "not": { "u_has_effect": "effect_slain_by_the_sun_limiter" } }, |
| 674 | + "then": [ { "run_eocs": "EOC_VAMPIRE_ANATHEMA_BURN_IN_SUNLIGHT_CONTINUAL" } ] |
| 675 | + } |
| 676 | + ] |
| 677 | + }, |
| 678 | + { |
| 679 | + "type": "effect_on_condition", |
| 680 | + "id": "EOC_VAMPIRE_ANATHEMA_BURN_IN_SUNLIGHT_GO_INDOORS", |
| 681 | + "eoc_type": "EVENT", |
| 682 | + "required_event": "avatar_moves", |
| 683 | + "condition": { |
| 684 | + "and": [ |
| 685 | + { "u_has_trait": "ANATHEMA_WEAKNESS_SUN_BURN" }, |
| 686 | + { "or": [ { "not": "is_day" }, { "not": "u_is_outside" }, { "is_weather": "blotted_sun" } ] } |
| 687 | + ] |
| 688 | + }, |
| 689 | + "effect": [ { "u_lose_effect": "effect_slain_by_the_sun" }, { "u_lose_effect": "effect_slain_by_the_sun_limiter" } ] |
| 690 | + }, |
| 691 | + { |
| 692 | + "type": "effect_on_condition", |
| 693 | + "id": "EOC_VAMPIRE_ANATHEMA_BURN_IN_SUNLIGHT_CONTINUAL", |
| 694 | + "condition": { "u_has_effect": "effect_slain_by_the_sun" }, |
| 695 | + "effect": [ |
| 696 | + { "u_add_effect": "effect_slain_by_the_sun_limiter", "duration": "PERMANENT" }, |
| 697 | + { |
| 698 | + "math": [ "_vampire_burning_chance = (30 * (u_effect_intensity('effect_vampiric_resilience') > -1 ? 4 : 1) )" ] |
| 699 | + }, |
| 700 | + { |
| 701 | + "foreach": "array", |
| 702 | + "target": [ "arm_l", "arm_r", "leg_l", "leg_r", "torso", "head" ], |
| 703 | + "var": { "context_val": "id" }, |
| 704 | + "effect": [ |
| 705 | + { |
| 706 | + "if": { "x_in_y_chance": { "x": 1, "y": { "math": [ "_vampire_burning_chance" ] } } }, |
| 707 | + "then": [ { "u_add_effect": "onfire", "duration": 30, "target_part": { "context_val": "id" } } ] |
| 708 | + } |
| 709 | + ] |
| 710 | + }, |
| 711 | + { |
| 712 | + "u_message": "You are burning in the sunlight! Your burn chance is 1 in <context_val:vampire_burning_chance>.", |
| 713 | + "type": "debug" |
| 714 | + }, |
| 715 | + { "run_eocs": "EOC_VAMPIRE_ANATHEMA_BURN_IN_SUNLIGHT_CONTINUAL", "time_in_future": 1 } |
| 716 | + ] |
| 717 | + }, |
| 718 | + { |
| 719 | + "type": "effect_on_condition", |
| 720 | + "id": "EOC_XE_VAMPIRE_ANATHEMA_BURN_IN_SUNLIGHT_AT_SUNRISE", |
| 721 | + "recurrence": { "math": [ "time_until('sunrise')" ] }, |
| 722 | + "global": true, |
| 723 | + "run_for_npcs": false, |
| 724 | + "condition": { |
| 725 | + "and": [ |
| 726 | + { "u_has_trait": "ANATHEMA_WEAKNESS_SUN_BURN" }, |
| 727 | + "is_day", |
| 728 | + "u_is_outside", |
| 729 | + { "not": { "is_weather": "blotted_sun" } } |
| 730 | + ] |
| 731 | + }, |
| 732 | + "effect": [ { "run_eocs": "EOC_VAMPIRE_ANATHEMA_BURN_IN_SUNLIGHT_CONTINUAL" } ] |
| 733 | + }, |
657 | 734 | {
|
658 | 735 | "type": "effect_on_condition",
|
659 | 736 | "id": "EOC_SET_VAMPIRE_TRAIT_NUMBERS_FOR_NPC_USE",
|
|
2210 | 2287 | "rng(0.75,1.25) * (300 + (vampire_total_tier_one_traits_plus_potency() * 33) + (vampire_total_tier_two_traits() * 75) + (vampire_total_tier_three_traits() * 125) + (vampire_total_tier_four_traits_plus_potence() * 200) + (vampire_total_tier_five_traits_plus_cauldron() * 270))"
|
2211 | 2288 | ]
|
2212 | 2289 | },
|
| 2290 | + { "if": { "u_has_trait": "ANATHEMA_WEAKNESS_SUN_BURN" }, "then": { "math": [ "sunless_time /= 100" ] } }, |
2213 | 2291 | { "run_eocs": [ "EOC_BLOT_THE_SUN" ] },
|
2214 | 2292 | { "run_eocs": "EOC_UNBLOT_THE_SUN", "time_in_future": { "math": [ "sunless_time" ] } },
|
2215 | 2293 | {
|
2216 |
| - "u_message": "Using your mastery over the Shadowed Path, you blot out the sun, covering the region around you in darkness for a short period of time.", |
2217 |
| - "type": "good" |
| 2294 | + "if": { "u_has_trait": "ANATHEMA_WEAKNESS_SUN_BURN" }, |
| 2295 | + "then": { |
| 2296 | + "u_message": "Using your mastery over the Shadowed Path, you blot out the sun, covering the region around you in darkness for a short period of time. But you can already see the hateful sun burning through the shadows; you had better find shelter immediately.", |
| 2297 | + "type": "mixed" |
| 2298 | + }, |
| 2299 | + "else": { |
| 2300 | + "u_message": "Using your mastery over the Shadowed Path, you blot out the sun, covering the region around you in darkness for a short period of time.", |
| 2301 | + "type": "good" |
| 2302 | + } |
2218 | 2303 | }
|
2219 | 2304 | ]
|
2220 | 2305 | }
|
|
0 commit comments