Skip to content

Commit

Permalink
Merge pull request #3252 from Superlagg/heavy-rain-minus-the-farts
Browse files Browse the repository at this point in the history
Unlags rain maybe
  • Loading branch information
Tk420634 authored Oct 2, 2023
2 parents b2b1951 + 0c35c63 commit 52f3650
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/datums/weather/weather_types/rain.dm
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

sound_ao_type = /datum/looping_sound/rain_sounds
sound_ai_type = /datum/looping_sound/indoor_rain_sounds
var/list/mobs_washied_cd = list()

/datum/weather/rain/eventarea
area_types = list(/area/f13/wasteland/event)
Expand All @@ -40,6 +41,11 @@
weather_duration_upper = 18000

/datum/weather/rain/weather_act(mob/living/L)
if(prob(80))
return
if((L.real_name in mobs_washied_cd) && !COOLDOWN_FINISHED(src, mobs_washied_cd[L.real_name]))
return
COOLDOWN_START(src, mobs_washied_cd[L.real_name], 15 SECONDS)
give_mob_washies(L)
CHECK_TICK

Expand Down

0 comments on commit 52f3650

Please sign in to comment.