mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 04:26:03 +01:00
_HELPERS/unsorted.dm has been sorted (#61882)
bring code up to latest standards, move many procs to named files inside _HELPERS no idea where to put some of these procs, help is appreciated made more files to contain some unique code, deleted unsorted.dm, we can rest now
This commit is contained in:
@@ -593,7 +593,7 @@
|
||||
// Loop over mobs
|
||||
for(var/t in return_turfs())
|
||||
var/turf/T = t
|
||||
for(var/mob/living/M in T.GetAllContents())
|
||||
for(var/mob/living/M in T.get_all_contents())
|
||||
// If they have a mind and they're not in the brig, they escaped
|
||||
if(M.mind && !istype(t, /turf/open/floor/mineral/plastitanium/red/brig))
|
||||
M.mind.force_escaped = TRUE
|
||||
|
||||
@@ -314,17 +314,17 @@
|
||||
|
||||
//Here is all the possible paygate payment methods.
|
||||
var/list/counted_money = list()
|
||||
for(var/obj/item/coin/C in AM.GetAllContents()) //Coins.
|
||||
for(var/obj/item/coin/C in AM.get_all_contents()) //Coins.
|
||||
if(payees[AM] >= threshold)
|
||||
break
|
||||
payees[AM] += C.value
|
||||
counted_money += C
|
||||
for(var/obj/item/stack/spacecash/S in AM.GetAllContents()) //Paper Cash
|
||||
for(var/obj/item/stack/spacecash/S in AM.get_all_contents()) //Paper Cash
|
||||
if(payees[AM] >= threshold)
|
||||
break
|
||||
payees[AM] += S.value * S.amount
|
||||
counted_money += S
|
||||
for(var/obj/item/holochip/H in AM.GetAllContents()) //Holocredits
|
||||
for(var/obj/item/holochip/H in AM.get_all_contents()) //Holocredits
|
||||
if(payees[AM] >= threshold)
|
||||
break
|
||||
payees[AM] += H.credits
|
||||
|
||||
@@ -69,7 +69,7 @@ GLOBAL_LIST_INIT(blacklisted_cargo_types, typecacheof(list(
|
||||
for(var/place in areaInstances)
|
||||
var/area/shuttle/shuttle_area = place
|
||||
for(var/turf/shuttle_turf in shuttle_area)
|
||||
for(var/atom/passenger in shuttle_turf.GetAllContents())
|
||||
for(var/atom/passenger in shuttle_turf.get_all_contents())
|
||||
if((is_type_in_typecache(passenger, GLOB.blacklisted_cargo_types) || HAS_TRAIT(passenger, TRAIT_BANNED_FROM_CARGO_SHUTTLE)) && !istype(passenger, /obj/docking_port))
|
||||
return FALSE
|
||||
return TRUE
|
||||
|
||||
Reference in New Issue
Block a user