- Fixed the error which made coloring eggs display the text "You color the crayon rainbow." instead of "You color the egg rainbow."

- Fixed the problem of mousetraps staying armed after a mouse triggered them
- Fixed the problem which made the following text appear when runtime splats a mouse: "Runtime Runtime SPLATS the mouse."

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4225 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
baloh.matevz
2012-07-30 01:56:50 +00:00
parent 31f33dcedb
commit e3b5ac4628
3 changed files with 7 additions and 5 deletions
+5 -3
View File
@@ -141,6 +141,10 @@
if(affecting.take_damage(1, 0))
H.UpdateDamageIcon()
H.updatehealth()
else if(ismouse(target))
var/mob/living/simple_animal/mouse/M = target
src.visible_message("\red <b>SPLAT!</b>")
M.splat()
playsound(target.loc, 'snap.ogg', 50, 1)
icon_state = "mousetrap"
armed = 0
@@ -197,9 +201,7 @@
continue
O.show_message("\red <B>[H] accidentally steps on the mousetrap.</B>", 1)
if(ismouse(AM))
var/mob/living/simple_animal/mouse/M = AM
src.visible_message("\red <b>SPLAT!</b>")
M.splat()
triggered(AM)
..()
/obj/item/weapon/mousetrap/hitby(A as mob|obj)