Init Sanity Unit Test (#25442)

* Init Sanity Unit Test

* Oops

* Update code/modules/unit_tests/init_sanity.dm

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
Signed-off-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>

* Makes noticeboard less silly

---------

Signed-off-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
AffectedArc07
2024-05-23 19:43:33 +00:00
committed by GitHub
co-authored by Contrabang DGamerL
parent 23ad8a48fa
commit 03cca11f95
43 changed files with 222 additions and 279 deletions
+4 -4
View File
@@ -8,7 +8,7 @@
w_class = WEIGHT_CLASS_BULKY
/obj/item/mounted/noticeboard/do_build(turf/on_wall, mob/user)
new /obj/structure/noticeboard(get_turf(user), get_dir(on_wall, user), building = TRUE)
new /obj/structure/noticeboard(get_turf(user), get_dir(on_wall, user), TRUE)
qdel(src)
/obj/structure/noticeboard
@@ -21,21 +21,21 @@
max_integrity = 150
var/notices = 0
/obj/structure/noticeboard/New(turf/loc, direction, building = FALSE)
/obj/structure/noticeboard/Initialize(mapload, direction, building = FALSE)
. = ..()
if(building)
setDir(direction)
set_pixel_offsets_from_dir(-32, 32, -30, 30)
update_icon(UPDATE_ICON_STATE)
/obj/structure/noticeboard/Initialize()
. = ..()
for(var/obj/item/paper in loc)
if(notices >= MAX_NOTICES)
break
if(istype(paper, /obj/item/paper))
paper.loc = src
notices++
update_icon(UPDATE_ICON_STATE)
/obj/structure/noticeboard/update_icon_state()
+1 -1
View File
@@ -100,8 +100,8 @@
desc = "Heavy duty, airtight, plastic flaps."
/obj/structure/plasticflaps/mining/Initialize()
. = ..()
air_update_turf(TRUE)
..()
/obj/structure/plasticflaps/mining/Destroy()
var/turf/T = get_turf(src)