Skip to content

Commit

Permalink
fix portal storm distance (CleverRaven#71498)
Browse files Browse the repository at this point in the history
* fix portal storm distance

* Update weather_type.json

* actually fix the weather
  • Loading branch information
GuardianDll authored Feb 4, 2024
1 parent 93fb548 commit 67626c7
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions data/json/weather_type.json
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,9 @@
"condition": {
"and": [
{ "math": [ "cause_early_portal_storm", "==", "1" ] },
{ "math": [ "distance('_weather_location', 'portal_storm_center')", "<=", "portal_storm_distant_distance" ] }
{
"math": [ "distance(_weather_location, portal_storm_center)", "<=", "value_or(portal_storm_distant_distance, 200)" ]
}
]
}
},
Expand Down Expand Up @@ -370,7 +372,9 @@
"condition": {
"and": [
{ "math": [ "cause_portal_storm", "==", "1" ] },
{ "math": [ "distance('_weather_location', 'portal_storm_center')", "<=", "portal_storm_distant_distance" ] }
{
"math": [ "distance(_weather_location, portal_storm_center)", "<=", "value_or(portal_storm_distant_distance, 200)" ]
}
]
}
},
Expand Down Expand Up @@ -398,7 +402,9 @@
"condition": {
"and": [
{ "math": [ "cause_portal_storm", "==", "1" ] },
{ "math": [ "distance('_weather_location', 'portal_storm_center')", "<=", "portal_storm_close_distance" ] }
{
"math": [ "distance(_weather_location, portal_storm_center)", "<=", "value_or(portal_storm_close_distance, 100)" ]
}
]
}
},
Expand Down Expand Up @@ -426,7 +432,9 @@
"condition": {
"and": [
{ "math": [ "cause_portal_storm", "==", "1" ] },
{ "math": [ "distance('_weather_location', 'portal_storm_center')", "<=", "portal_storm_distance" ] }
{
"math": [ "distance(_weather_location, portal_storm_center)", "<=", "value_or(portal_storm_distance, 50)" ]
}
]
}
}
Expand Down

0 comments on commit 67626c7

Please sign in to comment.