mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 21:12:24 +01:00
lowers emotional manipulator message frequency (#12262)
* lowers emotional manipulator message frequency * updates emotion freq * updates the emotional manipulator frequency Co-authored-by: TheGreyWolf <mc-casper@hotmail.dk>
This commit is contained in:
co-authored by
TheGreyWolf
parent
ab1c608572
commit
84806e4d7c
@@ -480,6 +480,7 @@
|
||||
action_button_icon = "emotional_manipulator"
|
||||
cooldown = 10
|
||||
var/set_emotion = "Disabled"
|
||||
var/last_emotion = 0
|
||||
|
||||
var/list/possible_emotions = list(
|
||||
"Disabled",
|
||||
@@ -502,12 +503,13 @@
|
||||
if(!owner)
|
||||
return
|
||||
|
||||
if(prob(10))
|
||||
if(world.time > (last_emotion + 5 MINUTES))
|
||||
switch(set_emotion)
|
||||
if("happiness")
|
||||
to_chat(owner, SPAN_NOTICE("You feel happy."))
|
||||
if("calmness")
|
||||
to_chat(owner, SPAN_NOTICE("You feel calm."))
|
||||
last_emotion = world.time
|
||||
|
||||
if(is_broken())
|
||||
do_broken_act()
|
||||
|
||||
Reference in New Issue
Block a user