Some uses of ismouse() replaced with isanimal()

world.time used to calculate mouse spawn timer.

Spawn timer now applies to being killed via splat().
This commit is contained in:
RavingManiac
2013-02-19 19:22:00 +08:00
parent b2b2894e3b
commit 254b5cccd4
5 changed files with 11 additions and 12 deletions
+5 -2
View File
@@ -263,8 +263,11 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
set name = "Become mouse"
set category = "Ghost"
if(client.can_spawn_as_mouse == 0)
src << "<span class='warning'>You may only spawn again as a mouse more than [mouse_respawn_time] minutes after your death.</span>"
var/timedifference = world.time - client.time_died_as_mouse
if(client.time_died_as_mouse && timedifference <= mouse_respawn_time * 600)
var/timedifference_text
timedifference_text = time2text(mouse_respawn_time * 600 - timedifference,"mm:ss")
src << "<span class='warning'>You may only spawn again as a mouse more than [mouse_respawn_time] minutes after your death. You have [timedifference_text] left.</span>"
return
//find a viable mouse candidate