mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
Adds a configurable message to be sent to mobs on polymorph (#28541)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user