mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 02:57:48 +01:00
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:
@@ -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)
|
||||
..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user