-
-
Notifications
You must be signed in to change notification settings - Fork 449
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
144 changed files
with
4,206 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#define PSI_COERCION "coercion" | ||
#define PSI_PSYCHOKINESIS "psychokinesis" | ||
#define PSI_REDACTION "redaction" | ||
#define PSI_ENERGISTICS "energistics" | ||
|
||
#define PSI_RANK_BLUNT 0 | ||
#define PSI_RANK_LATENT 1 | ||
#define PSI_RANK_OPERANT 2 | ||
#define PSI_RANK_MASTER 3 | ||
#define PSI_RANK_GRANDMASTER 4 | ||
#define PSI_RANK_PARAMOUNT 5 | ||
|
||
#define PSI_IMPLANT_AUTOMATIC "Security Level Derived" | ||
#define PSI_IMPLANT_SHOCK "Issue Neural Shock" | ||
#define PSI_IMPLANT_WARN "Issue Reprimand" | ||
#define PSI_IMPLANT_LOG "Log Incident" | ||
#define PSI_IMPLANT_DISABLED "Disabled" | ||
|
||
#define COMSIG_PSI_SELECTION "select action" | ||
#define COMSIG_PSI_INVOKE "invoke selected" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
GLOBAL_LIST_INIT(psychic_ranks_to_strings, list("Latent", "Operant", "Masterclass", "Grandmasterclass", "Paramount")) | ||
|
||
PROCESSING_SUBSYSTEM_DEF(psi) | ||
name = "Psychics" | ||
// priority = SS_PRIORITY_PSYCHICS | ||
flags = SS_POST_FIRE_TIMING | SS_BACKGROUND | ||
|
||
var/list/faculties_by_id = list() | ||
var/list/faculties_by_name = list() | ||
var/list/all_aura_images = list() | ||
var/list/all_psi_complexes = list() | ||
var/list/psi_dampeners = list() | ||
var/list/psi_monitors = list() | ||
var/list/armour_faculty_by_type = list() | ||
var/list/faculties_by_intent = list() | ||
|
||
/datum/controller/subsystem/processing/psi/New() | ||
NEW_SS_GLOBAL(SSpsi) | ||
|
||
/datum/controller/subsystem/processing/psi/proc/get_faculty(faculty) | ||
return faculties_by_name[faculty] || faculties_by_id[faculty] | ||
|
||
/datum/controller/subsystem/processing/psi/Initialize() | ||
. = ..() | ||
|
||
var/list/faculties = subtypesof(/datum/psionic_faculty) | ||
for(var/ftype in faculties) | ||
var/datum/psionic_faculty/faculty = new ftype | ||
faculties_by_id[faculty.id] = faculty | ||
faculties_by_name[faculty.name] = faculty | ||
faculties_by_intent[faculty.associated_intent] = faculty.id | ||
|
||
var/list/powers = subtypesof(/datum/psionic_power) | ||
for(var/ptype in powers) | ||
var/datum/psionic_power/power = new ptype | ||
if(power.faculty) | ||
var/datum/psionic_faculty/faculty = get_faculty(power.faculty) | ||
faculty?.powers |= power |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.