Skip to content

Commit 34ed887

Browse files
Add selkie advancement
1 parent c480851 commit 34ed887

File tree

2 files changed

+132
-0
lines changed

2 files changed

+132
-0
lines changed

data/mods/Xedra_Evolved/effects/effects.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3892,5 +3892,12 @@
38923892
"show_in_info": true,
38933893
"max_intensity": 300,
38943894
"flags": [ "CANNOT_MOVE" ]
3895+
},
3896+
{
3897+
"type": "effect_type",
3898+
"id": "effect_changeling_advancement_selkie_stand_in_rain_counter",
3899+
"//": "Hidden effect, used as a counter",
3900+
"name": [ "" ],
3901+
"desc": [ "" ]
38953902
}
38963903
]

data/mods/Xedra_Evolved/eocs/playable_changeling_advancement_eocs.json

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,5 +477,130 @@
477477
{ "math": [ "u_changeling_advancement_dreams_counter++" ] },
478478
{ "math": [ "u_changeling_advancement_pooka_condition_kill_triffid_heart = 1" ] }
479479
]
480+
},
481+
{
482+
"type": "effect_on_condition",
483+
"id": "EOC_PLAYABLE_CHANGELING_ADVANCEMENT_SELKIE_REACH_LEVEL_SEVEN_ATHLETICS",
484+
"eoc_type": "EVENT",
485+
"required_event": "gains_skill_level",
486+
"condition": {
487+
"and": [
488+
{ "u_has_trait": "UNKNOWING_CHANGELING_NOBLE" },
489+
{ "compare_string": [ { "context_val": "skill" }, "swimming" ] },
490+
{ "math": [ "_new_level >= 7" ] },
491+
{ "math": [ "u_changeling_advancement_selkie_condition_reach_level_seven_athletics != 1" ] }
492+
]
493+
},
494+
"effect": [
495+
{ "math": [ "u_changeling_advancement_dreams_counter++" ] },
496+
{ "math": [ "u_changeling_advancement_selkie_condition_reach_level_seven_athletics = 1" ] }
497+
]
498+
},
499+
{
500+
"type": "effect_on_condition",
501+
"id": "EOC_PLAYABLE_CHANGELING_ADVANCEMENT_SELKIE_STAND_OUT_IN_RAIN",
502+
"recurrence": 1,
503+
"condition": {
504+
"and": [
505+
{ "u_has_trait": "UNKNOWING_CHANGELING_COMMONER_SELKIE" },
506+
{
507+
"or": [
508+
{ "is_weather": "weather_rain" },
509+
{ "is_weather": "weather_rainstorm" },
510+
{ "is_weather": "weather_thunder" },
511+
{ "is_weather": "weather_lightning" }
512+
]
513+
},
514+
{ "math": [ "u_changeling_advancement_selkie_condition_stand_in_rain != 1" ] }
515+
]
516+
},
517+
"deactivate_condition": {
518+
"or": [
519+
{ "not": { "u_has_trait": "UNKNOWING_CHANGELING_COMMONER_SELKIE" } },
520+
{ "math": [ "u_changeling_advancement_selkie_condition_stand_in_rain = 1" ] },
521+
{
522+
"not": {
523+
"or": [
524+
{ "is_weather": "weather_rain" },
525+
{ "is_weather": "weather_rainstorm" },
526+
{ "is_weather": "weather_thunder" },
527+
{ "is_weather": "weather_lightning" }
528+
]
529+
}
530+
}
531+
]
532+
},
533+
"effect": [
534+
{
535+
"if": { "math": [ "u_effect_intensity('effect_changeling_advancement_selkie_stand_in_rain_counter') > 900" ] },
536+
"then": [
537+
{ "math": [ "u_changeling_advancement_dreams_counter++" ] },
538+
{ "math": [ "u_changeling_advancement_selkie_condition_stand_in_rain = 1" ] }
539+
]
540+
},
541+
{ "u_add_effect": "effect_changeling_advancement_selkie_stand_in_rain_counter", "duration": "16 minutes" }
542+
]
543+
},
544+
{
545+
"type": "effect_on_condition",
546+
"id": "EOC_PLAYABLE_CHANGELING_ADVANCEMENT_SELKIE_GO_TO_RIVER",
547+
"eoc_type": "EVENT",
548+
"required_event": "avatar_enters_omt",
549+
"condition": {
550+
"and": [
551+
{ "u_has_trait": "UNKNOWING_CHANGELING_COMMONER_SELKIE" },
552+
{
553+
"or": [
554+
{ "u_at_om_location": "generic_river_bank" },
555+
{ "u_at_om_location": "generic_river" },
556+
{ "u_at_om_location": "river_center" },
557+
{ "u_at_om_location": "river" },
558+
{ "u_at_om_location": "river_c_not_ne" },
559+
{ "u_at_om_location": "river_c_not_nw" },
560+
{ "u_at_om_location": "river_c_not_se" },
561+
{ "u_at_om_location": "river_c_not_sw" }
562+
]
563+
},
564+
{ "math": [ "u_changeling_advancement_selkie_condition_go_near_river != 1" ] }
565+
]
566+
},
567+
"effect": [
568+
{ "math": [ "u_changeling_advancement_dreams_counter++" ] },
569+
{ "math": [ "u_changeling_advancement_selkie_condition_go_near_river = 1" ] }
570+
]
571+
},
572+
{
573+
"type": "effect_on_condition",
574+
"id": "EOC_PLAYABLE_CHANGELING_ADVANCEMENT_SELKIE_GO_TO_LAKE",
575+
"eoc_type": "EVENT",
576+
"required_event": "avatar_enters_omt",
577+
"condition": {
578+
"and": [
579+
{ "u_has_trait": "UNKNOWING_CHANGELING_COMMONER_SELKIE" },
580+
{ "or": [ { "u_at_om_location": "lake_shore" }, { "u_at_om_location": "lake_surface" } ] },
581+
{ "math": [ "u_changeling_advancement_selkie_condition_go_near_lake != 1" ] }
582+
]
583+
},
584+
"effect": [
585+
{ "math": [ "u_changeling_advancement_dreams_counter++" ] },
586+
{ "math": [ "u_changeling_advancement_selkie_condition_go_near_lake = 1" ] }
587+
]
588+
},
589+
{
590+
"type": "effect_on_condition",
591+
"id": "EOC_PLAYABLE_CHANGELING_ADVANCEMENT_SELKIE_GO_TO_OCEAN",
592+
"eoc_type": "EVENT",
593+
"required_event": "avatar_enters_omt",
594+
"condition": {
595+
"and": [
596+
{ "u_has_trait": "UNKNOWING_CHANGELING_COMMONER_SELKIE" },
597+
{ "or": [ { "u_at_om_location": "ocean_water_cube" }, { "u_at_om_location": "ocean_surface" } ] },
598+
{ "math": [ "u_changeling_advancement_selkie_condition_go_near_ocean != 1" ] }
599+
]
600+
},
601+
"effect": [
602+
{ "math": [ "u_changeling_advancement_dreams_counter += 2" ] },
603+
{ "math": [ "u_changeling_advancement_selkie_condition_go_near_ocean = 1" ] }
604+
]
480605
}
481606
]

0 commit comments

Comments
 (0)