Porting GetComponent macros removal, and some related changes.
This commit is contained in:
@@ -41,7 +41,7 @@ GLOBAL_LIST_INIT(blacklisted_automated_baseturfs, typecacheof(list(
|
||||
/turf/open/copyTurf(turf/T, copy_air = FALSE)
|
||||
. = ..()
|
||||
if (isopenturf(T))
|
||||
GET_COMPONENT(slip, /datum/component/wet_floor)
|
||||
var/datum/component/wet_floor/slip = GetComponent(/datum/component/wet_floor)
|
||||
if(slip)
|
||||
var/datum/component/wet_floor/WF = T.AddComponent(/datum/component/wet_floor)
|
||||
WF.InheritComponent(slip)
|
||||
|
||||
@@ -15,11 +15,11 @@
|
||||
AddComponent(/datum/component/chasm, SSmapping.get_turf_below(src))
|
||||
|
||||
/turf/open/chasm/proc/set_target(turf/target)
|
||||
GET_COMPONENT(chasm_component, /datum/component/chasm)
|
||||
var/datum/component/chasm/chasm_component = GetComponent(/datum/component/chasm)
|
||||
chasm_component.target_turf = target
|
||||
|
||||
/turf/open/chasm/proc/drop(atom/movable/AM)
|
||||
GET_COMPONENT(chasm_component, /datum/component/chasm)
|
||||
var/datum/component/chasm/chasm_component = GetComponent(/datum/component/chasm)
|
||||
chasm_component.drop(AM)
|
||||
|
||||
/turf/open/chasm/MakeSlippery(wet_setting, min_wet_time, wet_time_to_add, max_wet_time, permanent)
|
||||
|
||||
Reference in New Issue
Block a user