mirror of
https://gitlab.com/Deukhoofd/BattleSim.git
synced 2025-10-28 02:00:04 +00:00
Added more flavour text for Primal Weather
This commit is contained in:
@@ -324,7 +324,7 @@ class @Battle extends Room
|
||||
console.log(weatherName)
|
||||
console.log(@weakWeather)
|
||||
if weatherName in @weakWeather and @weather in @strongWeather
|
||||
@cannedText(WEATHER_FAIL)
|
||||
@cannedText("WEATHER_FAIL")
|
||||
return
|
||||
cannedText = switch weatherName
|
||||
when Weather.SUN then "SUN_START"
|
||||
@@ -333,6 +333,8 @@ class @Battle extends Room
|
||||
when Weather.HAIL then "HAIL_START"
|
||||
when Weather.MOON then "MOON_START"
|
||||
when Weather.DELTASTREAM then "DELTASTREAM_START"
|
||||
when Weather.HARSHSUN then "HARSHSUN_START"
|
||||
when Weather.HEAVYRAIN then "HEAVYRAIN_START"
|
||||
else
|
||||
switch @weather
|
||||
when Weather.SUN then "SUN_END"
|
||||
@@ -341,6 +343,9 @@ class @Battle extends Room
|
||||
when Weather.HAIL then "HAIL_END"
|
||||
when Weather.MOON then "MOON_END"
|
||||
when Weather.DELTASTREAM then "DELTASTREAM_END"
|
||||
when Weather.HARSHSUN then "HARSHSUN_END"
|
||||
when Weather.HEAVYRAIN then "HEAVYRAIN_END"
|
||||
|
||||
@cannedText(cannedText) if cannedText
|
||||
@weather = weatherName
|
||||
@weatherDuration = turns
|
||||
|
||||
@@ -310,6 +310,7 @@ class @Move
|
||||
typeeffect = util.typeEffectiveness(type, targettype)
|
||||
if targettype == "Flying" and typeeffect > 1
|
||||
typeeffect = 1
|
||||
battle.cannedText('DELTASTREAM_MOVEFAIL')
|
||||
neweffect * typeeffect
|
||||
effect = neweffect
|
||||
if target.hasAbility("Ethereal Shroud")
|
||||
|
||||
Reference in New Issue
Block a user