mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 15:47:15 +01:00
Fixes the flipped table spawners (#90518)
## About The Pull Request They weren't actually working turns out. There was a race condition with icon smoothing, so it needs to be flipped after the table gets smoothed. On top of that the dir wasn't being passed properly. ## Why It's Good For The Game Stuff that actually works! This will allow for things like this on mapload:  ## Changelog 🆑 fix: fixes flipped table spawners not initializing correctly /🆑
This commit is contained in:
@@ -78,7 +78,7 @@
|
||||
ADD_TRAIT(src, TRAIT_COMBAT_MODE_SKIP_INTERACTION, INNATE_TRAIT)
|
||||
|
||||
if(can_flip && is_flipped)
|
||||
flip_table()
|
||||
flip_table(dir)
|
||||
return
|
||||
|
||||
make_climbable()
|
||||
@@ -121,7 +121,7 @@
|
||||
is_flipped = FALSE
|
||||
|
||||
//proc that removes elements present in now-flipped tables
|
||||
/obj/structure/table/proc/flip_table(new_dir)
|
||||
/obj/structure/table/proc/flip_table(new_dir = SOUTH)
|
||||
playsound(src, 'sound/items/trayhit/trayhit1.ogg', 100)
|
||||
RemoveElement(/datum/element/climbable)
|
||||
RemoveElement(/datum/element/footstep_override, priority = STEP_SOUND_TABLE_PRIORITY)
|
||||
|
||||
Reference in New Issue
Block a user