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:
Casper3667
2021-08-07 13:55:49 +02:00
committed by GitHub
co-authored by TheGreyWolf
parent ab1c608572
commit 84806e4d7c
2 changed files with 9 additions and 1 deletions
+3 -1
View File
@@ -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()