Various Tent Fixes (#19509)

- bugfix: "Fixed tents not allowing assembly/disassembly by someone who
was interrupted."
  - bugfix: "Fixed tents having invisible walls inside of them."
  - bugfix: "Fixed ghosts being unable to see inside tents."
  - bugfix: "Fixed tent sprites to be 3/4th compliant."
- bugfix: "Fixed tent roofs not disappering when you disassemble one you
are inside of."
  - bugfix: "Fixed tent canvas not having a description."
  - bugfix: "Fixed pre-fabricated tents not being disassembleable."
This commit is contained in:
Sparky
2024-06-26 10:09:20 +00:00
committed by GitHub
parent 9afc02912d
commit 7e0dc8a88b
5 changed files with 83 additions and 16 deletions
+3 -1
View File
@@ -78,6 +78,7 @@
stages[stage_to_do] = STAGE_PROGRESS
if(!do_after(user, time_per_structure * LAZYLEN(target_turfs)))
stages[stage_to_do] = STAGE_DISASSEMBLED
interacting -= user
return
user.visible_message(SPAN_NOTICE("\The [user] finishes assembling the [stage_to_do]."))
stages[stage_to_do] = STAGE_ASSEMBLED
@@ -127,6 +128,7 @@
stages[stage_to_do] = STAGE_PROGRESS
if(!do_after(user, time_per_structure * LAZYLEN(grouped_structures)))
stages[stage_to_do] = STAGE_ASSEMBLED
interacting -= user
return FALSE
user.visible_message(SPAN_NOTICE("\The [user] finishes disassembling the [stage_to_do]."))
stages[stage_to_do] = STAGE_DISASSEMBLED
@@ -147,7 +149,7 @@
return TRUE
/datum/large_structure/proc/structure_entered(var/turf/entry_point, var/atom/movable/entering)
if(!isliving(entering))
if(!(isliving(entering) || isobserver(entering)))
return FALSE
RegisterSignal(entering, COMSIG_MOVABLE_MOVED, PROC_REF(mob_moved), override = TRUE)
return TRUE