send proper message about karma gains, display a message about whether it's enabled or not at roundstart for less confusion
This commit is contained in:
Couls
2019-03-10 16:05:02 -04:00
parent 4bfc880648
commit 9037aa2d87
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -383,6 +383,9 @@
if(prefs.toggles & DISABLE_KARMA) // activates if karma is disabled
if(establish_db_connection())
to_chat(src,"<span class='notice'>You have disabled karma gains.") // reminds those who have it disabled
else
if (establish_db_connection())
to_chat(src,"<span class='notice'>You have enabled karma gains.")
if(!void)
void = new()
@@ -224,10 +224,10 @@
set name = "Toggle Karma Gains"
set category = "Special Verbs"
set desc = "This button will allow you to stop other people giving you karma."
prefs.toggles ^= DISABLE_KARMA
prefs.save_preferences(src)
if (prefs.toggles & DISABLE_KARMA)
to_chat(usr, "<span class='notice'>You have disabled karma gains.")
else
to_chat(usr, "<span class='notice'>You have enabled karma gains.")
prefs.toggles ^= DISABLE_KARMA
prefs.save_preferences(src)
return