mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Fixes #8440
This commit is contained in:
@@ -21,12 +21,11 @@
|
|||||||
if(germ_level < GERM_LEVEL_MOVE_CAP && prob(8))
|
if(germ_level < GERM_LEVEL_MOVE_CAP && prob(8))
|
||||||
germ_level++
|
germ_level++
|
||||||
|
|
||||||
/mob/living/carbon/relaymove(var/mob/user, direction)
|
/mob/living/carbon/relaymove(var/mob/living/user, direction)
|
||||||
if(user in src.stomach_contents)
|
if((user in src.stomach_contents) && istype(user))
|
||||||
if(prob(40))
|
if(user.last_special <= world.time)
|
||||||
for(var/mob/M in hearers(4, src))
|
user.last_special = world.time + 50
|
||||||
if(M.client)
|
src.visible_message("<span class='danger'>You hear something rumbling inside [src]'s stomach...</span>")
|
||||||
M.show_message(text("\red You hear something rumbling inside [src]'s stomach..."), 2)
|
|
||||||
var/obj/item/I = user.get_active_hand()
|
var/obj/item/I = user.get_active_hand()
|
||||||
if(I && I.force)
|
if(I && I.force)
|
||||||
var/d = rand(round(I.force / 4), I.force)
|
var/d = rand(round(I.force / 4), I.force)
|
||||||
@@ -40,9 +39,7 @@
|
|||||||
H.updatehealth()
|
H.updatehealth()
|
||||||
else
|
else
|
||||||
src.take_organ_damage(d)
|
src.take_organ_damage(d)
|
||||||
for(var/mob/M in viewers(user, null))
|
user.visible_message("<span class='danger'>[user] attacks [src]'s stomach wall with the [I.name]!</span>")
|
||||||
if(M.client)
|
|
||||||
M.show_message(text("\red <B>[user] attacks [src]'s stomach wall with the [I.name]!"), 2)
|
|
||||||
playsound(user.loc, 'sound/effects/attackblob.ogg', 50, 1)
|
playsound(user.loc, 'sound/effects/attackblob.ogg', 50, 1)
|
||||||
|
|
||||||
if(prob(src.getBruteLoss() - 50))
|
if(prob(src.getBruteLoss() - 50))
|
||||||
|
|||||||
Reference in New Issue
Block a user