mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01: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:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user