mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-29 03:32:28 +00:00
Adds a simple kudos system (#21731)
* Add simple kudos system * oops * Fix up the messaging * convert to ckey-based tracking * imagine being able to spell * Adds some encouragement messages * honestly quite incredible https://user-images.githubusercontent.com/47290811/268751264-527a1f0a-3435-40f4-8cdf-1de005450037.gif Co-authored-by: JimKil3 <47290811+JimKil3@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> Co-authored-by: JimKil3 <47290811+JimKil3@users.noreply.github.com> * jimkil review 2 --------- Co-authored-by: JimKil3 <47290811+JimKil3@users.noreply.github.com> Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>
This commit is contained in:
@@ -612,6 +612,31 @@ SUBSYSTEM_DEF(ticker)
|
||||
var/mob/M = m
|
||||
H.add_hud_to(M)
|
||||
|
||||
var/static/list/base_encouragement_messages = list(
|
||||
"Keep on keeping on!",
|
||||
"Great job!",
|
||||
"Keep up the good work!",
|
||||
"Nice going!"
|
||||
)
|
||||
|
||||
var/static/list/special_encouragement_messages = list(
|
||||
"Outstanding!",
|
||||
"This is going on the fridge!",
|
||||
"Looks like you're popular!",
|
||||
"That's what we like to see!",
|
||||
"Hell yeah, brother!",
|
||||
"Honestly, quite incredible!"
|
||||
)
|
||||
|
||||
// Tell people how many kudos they got this round
|
||||
// Besides, what's another loop over the /entire player list/
|
||||
var/kudos_message
|
||||
for(var/mob/M in GLOB.player_list)
|
||||
var/kudos = M.mind?.kudos_received_from
|
||||
if(length(kudos))
|
||||
kudos_message = pick(length(kudos) > 5 ? special_encouragement_messages : base_encouragement_messages)
|
||||
to_chat(M, "<span class='green big'>You received <b>[length(M.mind.kudos_received_from)]</b> kudos from other players this round! [kudos_message]</span>")
|
||||
|
||||
// Seal the blackbox, stop collecting info
|
||||
SSblackbox.Seal()
|
||||
SSdbcore.SetRoundEnd()
|
||||
|
||||
Reference in New Issue
Block a user