New opendream pragmas (#20260)

Enabled new opendream pragmas
Fixed some runtime access check operators (`:`) around the codebase (not
all, some are unfixable as they're used in macros)

No player facing changes (hopefully)
This commit is contained in:
Fluffy
2024-12-29 11:12:09 +00:00
committed by GitHub
parent f55072cc42
commit 1ba0b35838
60 changed files with 324 additions and 813 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ var/global/list/can_enter_vent_with = list(
if(vent_found)
break
if(vent_found:is_welded()) // welded check
if(vent_found.is_welded()) // welded check
to_chat(src, SPAN_WARNING("You can't crawl into a welded vent!"))
return
@@ -33,14 +33,16 @@
/obj/machinery/atmospherics/proc/ventcrawl_to(var/mob/living/user, var/obj/machinery/atmospherics/target_move, var/direction)
if(target_move)
if(is_type_in_list(target_move, ventcrawl_machinery) && target_move.can_crawl_through())
if(target_move:is_welded())
var/obj/machinery/atmospherics/unary/UA = target_move
if(UA.is_welded())
user.visible_message(SPAN_WARNING("You hear something banging on \the [target_move.name]!"), SPAN_NOTICE("You can't escape from a welded vent."))
else
user.remove_ventcrawl()
user.forceMove(target_move.loc) //handles entering and so on
user.forceMove(UA.loc) //handles entering and so on
user.sight &= ~(SEE_TURFS|BLIND)
user.visible_message(SPAN_WARNING("You hear something squeezing through the ducts."), "You climb out the ventilation system.")
user.vent_trap_check("arriving", target_move)
user.vent_trap_check("arriving", UA)
else if(target_move.can_crawl_through())
if(target_move.return_network(target_move) != return_network(src))
user.remove_ventcrawl()