mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 03:55:11 +01:00
Replaces the mood component with a mood datum (#68592)
About The Pull Request Mood was abusing signals and get component pretty badly, so I redid it as a datum to stop this. Why It's Good For The CODEBASE Better code pratices, also gives admins easier tools to manage mood Changelog cl admin: Added two new procs into the VV dropdown menu to add and remove mood events from living mobs. /cl
This commit is contained in:
@@ -72,11 +72,11 @@
|
||||
mod.boots.AddComponent(/datum/component/squeak, list('sound/effects/clownstep1.ogg'=1,'sound/effects/clownstep2.ogg'=1), 50, falloff_exponent = 20) //die off quick please
|
||||
mod.wearer.AddElement(/datum/element/waddling)
|
||||
if(is_clown_job(mod.wearer.mind?.assigned_role))
|
||||
SEND_SIGNAL(mod.wearer, COMSIG_ADD_MOOD_EVENT, "clownshoes", /datum/mood_event/clownshoes)
|
||||
mod.wearer.add_mood_event("clownshoes", /datum/mood_event/clownshoes)
|
||||
|
||||
/obj/item/mod/module/waddle/on_suit_deactivation(deleting = FALSE)
|
||||
if(!deleting)
|
||||
qdel(mod.boots.GetComponent(/datum/component/squeak))
|
||||
mod.wearer.RemoveElement(/datum/element/waddling)
|
||||
if(is_clown_job(mod.wearer.mind?.assigned_role))
|
||||
SEND_SIGNAL(mod.wearer, COMSIG_CLEAR_MOOD_EVENT, "clownshoes")
|
||||
mod.wearer.clear_mood_event("clownshoes")
|
||||
|
||||
Reference in New Issue
Block a user