Skip to content

Commit

Permalink
[Innawoods] Delays the shadow lieutenant boss spawn (and warnings) by…
Browse files Browse the repository at this point in the history
… three seasons (mid winter by default). (#78293)

* Delays the shadow lieutenant spawn for innawoods by three seasons.

* Update data/mods/innawood/monsters/singularities.json

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update data/mods/innawood/monsters/singularities.json

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
Maarifrah and github-actions[bot] authored Dec 2, 2024
1 parent 6713b28 commit 4165bf8
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions data/mods/innawood/monsters/singularities.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
[
{
"type": "effect_on_condition",
"id": "EOC_LIEUTENANT_ACTIVATE_SHADOW",
"recurrence": "1 second",
"global": true,
"run_for_npcs": false,
"condition": { "and": [ { "math": [ "time_since('cataclysm', 'unit':'days') >= 270" ] }, { "math": [ "Lieutenants_active < 1" ] } ] },
"effect": [ { "math": [ "Lieutenants_active = 1" ] }, { "math": [ "Shadow_Lurking = 1" ] } ],
"deactivate_condition": { "math": [ "Lieutenants_active >= 1" ] }
},
{
"type": "effect_on_condition",
"id": "EOC_LIEUTENANT_SHADOW_WARN",
"condition": {
"and": [
{ "not": "is_day" },
{ "not": { "u_has_effect": "sleep" } },
{
"or": [ { "math": [ "Shadow_Lurking > 0" ] }, { "not": { "math": [ "time_since('cataclysm', 'unit':'days') >= 270" ] } } ]
},
{
"or": [ { "math": [ "Shadow_Lurking > 0" ] }, { "math": [ "time_since('cataclysm', 'unit':'days') >= 263" ] } ]
},
{
"or": [ { "math": [ "Shadow_Warnings < 1" ] }, { "math": [ "time_since('cataclysm', 'unit':'days') >= 270" ] } ]
},
"u_is_outside",
{
"or": [ { "u_at_om_location": "field" }, { "u_at_om_location": "forest" }, { "u_at_om_location": "forest_thick" } ]
}
]
},
"effect": [
{ "math": [ "Shadow_Warnings", "+=", "1" ] },
{
"if": { "math": [ "time_since('cataclysm', 'unit':'days') >= 270" ] },
"then": {
"if": { "math": [ "Shadow_Warnings < 2" ] },
"then": { "u_message": "Shadow_Warnings_Snippets_late", "snippet": true, "popup": true },
"else": { "u_message": "Shadow_Warnings_Snippets_late", "snippet": true, "popup": false }
},
"else": {
"if": { "math": [ "Shadow_Warnings < 2" ] },
"then": { "u_message": "Shadow_Warnings_Snippets_early", "snippet": true, "popup": true },
"else": { "u_message": "Shadow_Warnings_Snippets_early", "snippet": true, "popup": false }
}
}
]
}
]

0 comments on commit 4165bf8

Please sign in to comment.