Added policy config for sentient pyro slimes (no actual policy)
This commit is contained in:
@@ -18,3 +18,5 @@
|
|||||||
#define POLICYCONFIG_ON_DEFIB_INTACT "ON_DEFIB_INTACT"
|
#define POLICYCONFIG_ON_DEFIB_INTACT "ON_DEFIB_INTACT"
|
||||||
/// Displayed to defibbed/revival surgery'd patients after the memory loss time threshold
|
/// Displayed to defibbed/revival surgery'd patients after the memory loss time threshold
|
||||||
#define POLICYCONFIG_ON_DEFIB_LATE "ON_DEFIB_LATE"
|
#define POLICYCONFIG_ON_DEFIB_LATE "ON_DEFIB_LATE"
|
||||||
|
/// Displayed to pyroclastic slimes on spawn
|
||||||
|
#define POLICYCONFIG_ON_PYROCLASTIC_SENTIENT "PYROCLASTIC_SLIME"
|
||||||
|
|||||||
@@ -291,7 +291,19 @@
|
|||||||
S.rabid = TRUE
|
S.rabid = TRUE
|
||||||
S.amount_grown = SLIME_EVOLUTION_THRESHOLD
|
S.amount_grown = SLIME_EVOLUTION_THRESHOLD
|
||||||
S.Evolve()
|
S.Evolve()
|
||||||
offer_control(S,POLL_IGNORE_SENTIENCE_POTION)
|
var/list/candidates = pollCandidatesForMob("Do you want to play as a pyroclastic anomaly slime?",ROLE_SENTIENCE,null,ROLE_SENTIENCE,100,S,POLL_IGNORE_SENTIENCE_POTION)
|
||||||
|
if(length(candidates))
|
||||||
|
var/mob/C = pick(candidates)
|
||||||
|
message_admins("[key_name_admin(C)] has taken control of ([key_name_admin(S)])")
|
||||||
|
C.transfer_ckey(S, FALSE)
|
||||||
|
var/list/policies = CONFIG_GET(keyed_list/policyconfig)
|
||||||
|
var/policy = policies[POLICYCONFIG_ON_PYROCLASTIC_SENTIENT]
|
||||||
|
if(policy)
|
||||||
|
to_chat(S,policy)
|
||||||
|
return TRUE
|
||||||
|
else
|
||||||
|
message_admins("No ghosts were willing to take control of [ADMIN_LOOKUPFLW(S)])")
|
||||||
|
return FALSE
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user