mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 12:35:33 +01:00
Allows mobs to get shocked when they smash things (#31677)
also fixes an unrelated runtime involving magillitis
This commit is contained in:
committed by
ShizCalev
parent
f6bdaa039c
commit
3fac6440bd
@@ -756,6 +756,11 @@
|
||||
if(user)
|
||||
src.attack_ai(user)
|
||||
|
||||
/obj/machinery/door/airlock/attack_animal(mob/user)
|
||||
. = ..()
|
||||
if(isElectrified())
|
||||
shock(user, 100)
|
||||
|
||||
/obj/machinery/door/airlock/attack_paw(mob/user)
|
||||
return src.attack_hand(user)
|
||||
|
||||
|
||||
@@ -67,6 +67,10 @@
|
||||
var/mob/M = AM
|
||||
shock(M, 70)
|
||||
|
||||
/obj/structure/grille/attack_animal(mob/user)
|
||||
. = ..()
|
||||
if(!shock(user, 70))
|
||||
take_damage(rand(5,10), BRUTE, "melee", 1)
|
||||
|
||||
/obj/structure/grille/attack_paw(mob/user)
|
||||
attack_hand(user)
|
||||
|
||||
@@ -1585,7 +1585,7 @@
|
||||
/datum/reagent/magillitis/on_mob_life(mob/living/carbon/M)
|
||||
..()
|
||||
if((ismonkey(M) || ishuman(M)) && current_cycle >= 10)
|
||||
return M.gorillize()
|
||||
M.gorillize()
|
||||
|
||||
/datum/reagent/growthserum
|
||||
name = "Growth Serum"
|
||||
|
||||
Reference in New Issue
Block a user