[reviewpls] Adds moodlets to the game - [Please give suggestions for trait additions in comments]

This commit is contained in:
Qustinnus
2018-03-08 02:15:57 +01:00
committed by CitadelStationBot
parent 4d0b7133c8
commit a96a28f3d6
86 changed files with 1220 additions and 43 deletions
@@ -19,6 +19,9 @@
affecting.receive_damage(CLAMP(brute_dam/2, 15, 50), CLAMP(burn_dam/2, 0, 50)) //Damage the chest based on limb's existing damage
C.visible_message("<span class='danger'><B>[C]'s [src.name] has been violently dismembered!</B></span>")
C.emote("scream")
GET_COMPONENT_FROM(mood, /datum/component/mood, C)
if(mood)
mood.add_event("dismembered", /datum/mood_event/dismembered)
drop_limb()
if(dam_type == BURN)
@@ -101,6 +104,9 @@
I.forceMove(src)
if(!C.has_embedded_objects())
C.clear_alert("embeddedobject")
GET_COMPONENT_FROM(mood, /datum/component/mood, C)
if(mood)
mood.add_event("embedded")
if(!special)
if(C.dna)
@@ -121,6 +121,9 @@
I.forceMove(T)
clear_alert("embeddedobject")
GET_COMPONENT_FROM(mood, /datum/component/mood, src)
if(mood)
mood.clear_event("embedded")
/mob/living/carbon/proc/has_embedded_objects()
. = 0