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:
Luc
2023-09-19 17:44:03 +01:00
committed by GitHub
co-authored by JimKil3 Henri215
parent 683c9f9fc1
commit 719a86faea
3 changed files with 48 additions and 0 deletions
+19
View File
@@ -1600,3 +1600,22 @@ GLOBAL_LIST_INIT(holy_areas, typecacheof(list(
else
. = invoked_callback.Invoke()
usr = temp
/mob/verb/give_kudos(mob/living/target as mob in oview())
set category = null
set name = "Give Kudos (OOC)"
if(target == src)
to_chat(src, "<span class='warning'>You cannot give kudos to yourself!</span>")
return
to_chat(src, "<span class='notice'>You've given kudos to [target]!</span>")
// Pretend we've always succeeded when we might not have.
// This should prevent people from using it to suss anything out about mobs' states
if(!client || !target.mind)
return
target.mind.kudos_received_from |= ckey