mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
[No GBP]Fixes runtimes when deconstructing floor tiles with RTD (#74767)
## About The Pull Request Fixes this  Caused by this  Since the RTD deconstructs i.e. QDEL the floor tile, the animation effect tried to add a timer to QDEL itself on the deleted floor tile causing the runtime. ## Changelog 🆑 fix: RTD animation effect adding a timer on deleted floor tiles. /🆑 --------- Co-authored-by: tattle <66640614+dragomagol@users.noreply.github.com>
This commit is contained in:
@@ -328,7 +328,7 @@
|
||||
return SECONDARY_ATTACK_CANCEL_ATTACK_CHAIN
|
||||
|
||||
var/delay = DECONSTRUCTION_TIME(cost)
|
||||
var/obj/effect/constructing_effect/rcd_effect = new(floor, delay, RCD_FLOORWALL)
|
||||
var/obj/effect/constructing_effect/rcd_effect = new(floor, delay, RCD_DECONSTRUCT)
|
||||
|
||||
//resource sanity check before & after delay along with beam effects
|
||||
if(!checkResource(cost * 0.7, user)) //no ballon alert for checkResource as it already spans an alert to chat
|
||||
@@ -359,7 +359,7 @@
|
||||
qdel(decal)
|
||||
if(floor.baseturf_at_depth(1) == /turf/baseturf_bottom) //for turfs whose base is open space we put regular plating in its place else everyone dies
|
||||
floor.ChangeTurf(/turf/open/floor/plating, flags = CHANGETURF_INHERIT_AIR)
|
||||
else // for every other turf we scarp away exposing base turf underneath
|
||||
else //for every other turf we scrape away exposing base turf underneath
|
||||
floor.ScrapeAway(flags = CHANGETURF_INHERIT_AIR)
|
||||
rcd_effect.end_animation()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user