Skip to content

Commit 2be9cfe

Browse files
committed
Fixes simple animals being unable to dismount light tiles
1 parent 6d94fe8 commit 2be9cfe

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

code/game/turfs/simulated/floor.dm

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,13 +232,27 @@ var/global/list/turf/simulated/floor/phazontiles = list()
232232
return 0
233233

234234

235-
/turf/simulated/floor/attack_paw(mob/user as mob)
235+
/turf/simulated/floor/attack_paw(mob/user)
236+
if (is_light_floor())
237+
if (user.a_intent == I_HURT)
238+
remove_floor_tile()
239+
set_light(0)
240+
spark(src, 1)
241+
visible_message("<span class='warning'>\The [user] removes the light tile from \the [src]!</span>")
242+
return
236243
return src.attack_hand(user)
237244

238-
/turf/simulated/floor/attack_animal(mob/user as mob)
245+
/turf/simulated/floor/attack_animal(mob/user)
246+
if (is_light_floor())
247+
if (user.a_intent == I_HURT)
248+
visible_message("<span class='warning'>\The [user] removes the light tile from \the [src]!</span>")
249+
set_light(0)
250+
spark(src, 1)
251+
remove_floor_tile()
252+
return
239253
return src.attack_hand(user)
240254

241-
/turf/simulated/floor/attack_hand(mob/user as mob)
255+
/turf/simulated/floor/attack_hand(mob/user)
242256
if (is_light_floor())
243257
var/obj/item/stack/tile/light/T = floor_tile
244258
T.on = !T.on

0 commit comments

Comments
 (0)