Make karma toggleable

Add in feedback message

Update client defines.dm

keep it as bool I guess

Update karma.dm

Make it persistent

Update karma.dm

Update karma.dm

Update preferences.dm

make it compile, include kyet's suggestions

fix some things with the help of dtx
This commit is contained in:
Couls
2019-03-05 20:26:43 -05:00
parent c1fa401d4c
commit 8bc511f50f
6 changed files with 27 additions and 4 deletions
+3
View File
@@ -85,6 +85,9 @@ var/list/karma_spenders = list()
log_game("Illegal karma spending attempt detected from [key] to [M.key]. Using the same IP!")
to_chat(src, "<span class='warning'>You can't spend karma on someone connected from the same IP.</span>")
return FALSE
if(!M.client.wants_karma)
to_chat(src, "<span class='warning'>That player has turned off incoming karma.")
return FALSE
return TRUE