Adds a configurable message to be sent to mobs on polymorph (#28541)

This commit is contained in:
Jordan Brown
2017-06-21 09:48:13 -03:00
committed by Leo
parent 930a96e198
commit e5b1e68147
3 changed files with 12 additions and 0 deletions
+5
View File
@@ -265,6 +265,8 @@
var/irc_announce_new_game = FALSE
var/list/policies = list()
/datum/configuration/New()
gamemode_cache = typecacheof(/datum/game_mode,TRUE)
for(var/T in gamemode_cache)
@@ -288,6 +290,7 @@
/datum/configuration/proc/Reload()
load("config/config.txt")
load("config/game_options.txt","game_options")
load("config/policies.txt", "policies")
loadsql("config/dbconfig.txt")
if (maprotation)
loadmaplist("config/maps.txt")
@@ -779,6 +782,8 @@
mice_roundstart = text2num(value)
else
GLOB.config_error_log << "Unknown setting in configuration: '[name]'"
else if(type == "policies")
policies[name] = value
fps = round(fps)
if(fps <= 0)
@@ -277,6 +277,8 @@
to_chat(new_mob, "<span class='warning'>Your form morphs into that of a [randomize].</span>")
to_chat(new_mob, config.policies["polymorph"])
qdel(M)
return new_mob
+5
View File
@@ -0,0 +1,5 @@
## SERVER POLICIES ##
# Each line is pure html that gets sent to the user under certain conditions
# When a mob is polymorphed
POLYMORPH <span class='danger'>Note that you are allowed to act as an antagonist while transformed into a hostile mob, unless you volunteered for or sought out transformation.</span>