Skip to content

Commit

Permalink
- Fixed the error which made coloring eggs display the text "You colo…
Browse files Browse the repository at this point in the history
…r 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
  • Loading branch information
baloh.matevz committed Jul 30, 2012
1 parent 31f33dc commit e3b5ac4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions code/game/objects/weapons.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/food/food.dm
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
usr << "\blue The egg refuses to take on this color!"
return

usr << "\blue You color \the [C] [clr]"
usr << "\blue You color \the [src] [clr]"
icon_state = "egg-[clr]"
color = clr
else
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/simple_animal/cat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
for(var/mob/living/simple_animal/mouse/M in view(1,src))
if(!M.stat)
M.splat()
emote("\the [src] SPLATS \the [M]")
emote("SPLATS \the [M]")
movement_target = null
stop_automated_movement = 0
break
Expand Down

0 comments on commit e3b5ac4

Please sign in to comment.