Simple animals can now attack/interact (as described in my last commit) with:

Humanoid Aliens
Alien Larva
Monkeys
Cyborgs
AIs
Metroids
Other simple animals

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2810 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
kortgstation@gmail.com
2011-12-25 11:29:08 +00:00
parent acf51ac4ca
commit dce715aee0
7 changed files with 77 additions and 0 deletions
+10
View File
@@ -202,6 +202,16 @@
for (var/mob/O in viewers(src, null))
O.show_message("<B>[src]</B> [act].")
/mob/living/simple_animal/attack_animal(mob/living/simple_animal/M as mob)
if(M.melee_damage_upper == 0)
M.emote("[M.friendly] [src]")
else
for(var/mob/O in viewers(src, null))
O.show_message("\red <B>[M]</B> [M.attacktext] [src]!", 1)
var/damage = rand(M.melee_damage_lower, M.melee_damage_upper)
health -= damage
/mob/living/simple_animal/attack_hand(mob/living/carbon/human/M as mob)
..()