mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 11:43:31 +00:00
Merge pull request #5852 from Sharkmare/patch-9
Make water safe to enter in walk for aquatics
This commit is contained in:
@@ -201,6 +201,12 @@ var/list/shoreline_icon_cache = list()
|
|||||||
add_overlay(shoreline_icon_cache[cache_string])
|
add_overlay(shoreline_icon_cache[cache_string])
|
||||||
|
|
||||||
/turf/simulated/floor/water/is_safe_to_enter(mob/living/L)
|
/turf/simulated/floor/water/is_safe_to_enter(mob/living/L)
|
||||||
|
//CHOMPEDIT: Aquatic flags simulated water as safe now
|
||||||
|
if(istype(L,/mob/living/carbon))
|
||||||
|
var /mob/living/carbon/A = L
|
||||||
|
if(/datum/trait/positive/aquatic in A.species.traits)
|
||||||
|
return TRUE
|
||||||
|
//CHOMPEDIT: Aquatic flags simulated water as safe now
|
||||||
if(L.get_water_protection() < 1)
|
if(L.get_water_protection() < 1)
|
||||||
return FALSE
|
return FALSE
|
||||||
return ..()
|
return ..()
|
||||||
|
|||||||
Reference in New Issue
Block a user