Adds a pAI policy config

This commit is contained in:
Putnam
2021-02-26 00:34:13 -08:00
parent 744f393d38
commit 50c1a83c6a
3 changed files with 10 additions and 2 deletions

View File

@@ -22,3 +22,5 @@
#define POLICYCONFIG_ON_DEFIB_LATE "ON_DEFIB_LATE"
/// Displayed to pyroclastic slimes on spawn
#define POLICYCONFIG_ON_PYROCLASTIC_SENTIENT "PYROCLASTIC_SLIME"
/// Displayed to pAIs on spawn
#define POLICYCONFIG_PAI "PAI_SPAWN"

View File

@@ -122,7 +122,10 @@
/obj/item/paicard/proc/setPersonality(mob/living/silicon/pai/personality)
src.pai = personality
src.add_overlay("pai-null")
var/list/policies = CONFIG_GET(keyed_list/policyconfig)
var/policy = policies[POLICYCONFIG_PAI]
if(policy)
to_chat(personality, policy)
playsound(loc, 'sound/effects/pai_boot.ogg', 50, 1, -1)
audible_message("\The [src] plays a cheerful startup noise!")

View File

@@ -3,7 +3,10 @@
## ON_CLONE - displayed after a successful cloning operation to the cloned person
## ON_DEFIB_INTACT - displayed after defibbing before memory loss time threshold
## ON_DEFIB_LATE - displayed after defibbing post memory loss time threshold
##
## SDGF - displayed on SDGF clone spawning
## SDGF_GOOD - displayed on SDGF clone spawning, if the clone is loyal
## SDGF_BAD - displayed on SDGF clone spawning, if the clone is not loyal
## PAI - displayed on PAI personality being loaded
## EXAMPLE:
## POLICYCONFIG ON_CLONE insert text here <span class='notice'>span classes are fully supported</span>