mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-26 10:03:45 +00:00
Hail is now defended against by being under a tree.
This commit is contained in:
committed by
atermonera
parent
086e3c2c59
commit
01be1bf264
@@ -420,7 +420,19 @@ var/datum/planet/sif/planet_sif = null
|
||||
|
||||
if(istype(U) && U.open)
|
||||
if(show_message)
|
||||
to_chat(H, "<span class='notice'>Hail patters onto your umbrella.</span>")
|
||||
to_chat(H, SPAN_NOTICE("Hail patters against your [U.name]."))
|
||||
continue
|
||||
|
||||
// Being next to a tree will also guard from hail.
|
||||
var/near_tree = FALSE
|
||||
var/nearby_turfs = RANGE_TURFS(1, T)
|
||||
for(var/turf/nearby in nearby_turfs)
|
||||
if(locate(/obj/structure/flora/tree) in nearby)
|
||||
near_tree = TRUE
|
||||
break
|
||||
if(near_tree)
|
||||
if(show_message)
|
||||
to_chat(H, SPAN_NOTICE("Hail patters against the canopy above."))
|
||||
continue
|
||||
|
||||
var/target_zone = pick(BP_ALL)
|
||||
|
||||
Reference in New Issue
Block a user