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
@@ -141,7 +141,7 @@
log_attack("[s] ([H.ckey])")
if(O.take_damage(3, 0, damage_flags = DAMAGE_FLAG_SHARP|DAMAGE_FLAG_EDGE, used_weapon = "teeth marks"))
H:UpdateDamageIcon()
H.UpdateDamageIcon()
last_chew = world.time
@@ -229,7 +229,7 @@
/obj/item/storage/box/fancy/crayons/attackby(obj/item/attacking_item, mob/user)
if(istype(attacking_item, /obj/item/pen/crayon))
var/obj/item/pen/crayon/W = attacking_item
switch(W:colourName)
switch(W.colourName)
if("mime")
to_chat(usr, "This crayon is too sad to be contained in this box.")
return
@@ -254,7 +254,8 @@
for(var/obj/item/gift/G in src)
. += G.gift
if (istype(G.gift, /obj/item/storage))
. += G.gift:return_inv()
var/obj/item/storage/gift_storage = G.gift
. += gift_storage.return_inv()
/obj/item/storage/proc/show_to(mob/user as mob)
if(user.s_active != src)