mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 14:39:58 +01:00
Merge pull request #8958 from Incoming5643/excuse_me_while_I_vent_a_bit
buffs head slugs a bit
This commit is contained in:
@@ -17,7 +17,9 @@
|
||||
stat_attack = 2
|
||||
environment_smash = 0
|
||||
speak_emote = list("squeaks")
|
||||
ventcrawler = 2
|
||||
var/datum/mind/origin
|
||||
var/egg_lain = 0
|
||||
|
||||
/mob/living/simple_animal/hostile/headcrab/proc/Infect(var/mob/living/carbon/human/victim)
|
||||
var/obj/item/body_egg/changeling_egg/egg = new(victim)
|
||||
@@ -27,13 +29,19 @@
|
||||
egg.owner = mind
|
||||
victim.internal_organs += egg
|
||||
visible_message("<span class='notice'>[src] lays an egg in a [victim]!</span>")
|
||||
egg_lain = 1
|
||||
|
||||
/mob/living/simple_animal/hostile/headcrab/AttackingTarget()
|
||||
if(egg_lain)
|
||||
target.attack_animal(src)
|
||||
return
|
||||
if(ishuman(target))
|
||||
var/mob/living/carbon/human/H = target
|
||||
if(H.stat == DEAD)
|
||||
Infect(target)
|
||||
death()
|
||||
src << "<span class='danger'>With your egg laid you feel your death rapidly approaching, time to die...</span>"
|
||||
spawn(100)
|
||||
death()
|
||||
return
|
||||
target.attack_animal(src)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user