mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-09 07:48:55 +00:00
Adds a pAI policy config
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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!")
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user