Skip to content

Commit

Permalink
Scope the mission assignment to only avatar?
Browse files Browse the repository at this point in the history
  • Loading branch information
RenechCDDA committed Mar 4, 2024
1 parent 4f21f03 commit d485718
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion data/json/npcs/missiondef.json
Original file line number Diff line number Diff line change
Expand Up @@ -970,13 +970,14 @@
"id": "EOC_FACTION_SUCCESSION_CHECK",
"recurrence": [ "5 minutes", "20 minutes" ],
"global": true,
"condition": { "math": [ "time_since(u_timer_time_of_last_succession)", ">", "time('90 d')" ] },
"condition": { "math": [ "time_since(u_timer_time_of_last_succession)", ">", "time_between_succession" ] },
"effect": [ { "remove_active_mission": "MISSION_CAMP_LEADERSHIP_CHANGE" }, { "u_lose_var": "time_of_last_succession" } ],
"deactivate_condition": { "not": { "u_has_var": "time_of_last_succession", "value": "yes" } }
},
{
"type": "effect_on_condition",
"id": "EOC_FACTION_SUCCESSION_CHANGE_INIT",
"global": true,
"eoc_type": "EVENT",
"required_event": "game_start",
"effect": [
Expand All @@ -987,6 +988,7 @@
{
"type": "effect_on_condition",
"id": "EOC_FACTION_SUCCESSION_CHANGE_REINIT",
"global": true,
"eoc_type": "EVENT",
"required_event": "game_avatar_new",
"effect": [
Expand Down

0 comments on commit d485718

Please sign in to comment.