This commit is contained in:
Zuhayr
2015-01-03 06:53:29 +10:30
parent ce1a90c584
commit 982998d08d
3 changed files with 13 additions and 2 deletions
+1 -1
View File
@@ -12,7 +12,7 @@
var/draw_warnings = 1 //Set to 0 to stop it from drawing the alert lights.
// Plant maintenance vars.
var/waterlevel = 10 // Water (max 10)
var/waterlevel = 100 // Water (max 100)
var/nutrilevel = 10 // Nutrient (max 10)
var/pestlevel = 0 // Pests (max 10)
var/weedlevel = 0 // Weeds (max 10)
@@ -40,6 +40,17 @@
ghostize()
del src
/mob/living/simple_animal/construct/attack_generic(var/mob/user)
if(istype(user, /mob/living/simple_animal/construct/builder))
if(health < maxHealth)
adjustBruteLoss(-5)
user.visible_message("<b>\The [user]</b> mends some of \the [src]'s wounds.")
else
user << "<span class='notice'>\The [src] is undamaged.</span>"
return
return ..()
/mob/living/simple_animal/construct/examine(mob/user)
..(user)
var/msg = ""