forked from Aurorastation/Aurora.3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Your unbeatable smile wrecks the media
We wanna know your secret, so mysterious
- Loading branch information
Matt Atlas
committed
Jul 15, 2023
1 parent
f47e586
commit 1421abd
Showing
32 changed files
with
109 additions
and
1,432 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
#define PSI_COERCION "coercion" | ||
#define PSI_PSYCHOKINESIS "psychokinesis" | ||
#define PSI_REDACTION "redaction" | ||
#define PSI_ENERGISTICS "energistics" | ||
#define PSI_RANK_DEAF 0 // Psionically deaf. | ||
#define PSI_RANK_PERCEPTIVE 1 // Psionically perceptive. | ||
#define PSI_RANK_SENSITIVE 2 // Psionically sensitive. | ||
#define PSI_RANK_HARMONIOUS 3 // Psionically harmonious. | ||
#define PSI_RANK_APEX 4 // Psionic apex. | ||
|
||
#define PSI_FLAG_CANON 1 // An ability that can be selected by a ship character. | ||
#define PSI_FLAG_EVENT 2 // An ability for events, not selectable by ship characters. | ||
|
||
#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 |
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 |
---|---|---|
@@ -1,40 +1,21 @@ | ||
var/global/list/psychic_ranks_to_strings = list("Latent", "Operant", "Masterclass", "Grandmasterclass", "Paramount") | ||
var/global/list/psychic_ranks_to_strings = list("Psionically Deaf", "Psionically Sensitive", "Psionically Harmonious", "Psionic Apex") | ||
|
||
/var/datum/controller/subsystem/processing/psi/SSpsi | ||
|
||
/datum/controller/subsystem/processing/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/armor_faculty_by_type = list() | ||
var/list/faculties_by_intent = list() | ||
var/last_nlom_awareness_check = 0 | ||
var/list/all_aura_images = list() | ||
var/list/all_psi_complexes = list() | ||
|
||
/datum/controller/subsystem/processing/psi/New() | ||
NEW_SS_GLOBAL(SSpsi) | ||
|
||
/datum/controller/subsystem/processing/psi/proc/get_faculty(var/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) | ||
if(faculty) | ||
faculty.powers |= power | ||
/datum/controller/subsystem/processing/psi/process() | ||
/// nlom awareness check here |
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
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,13 @@ | ||
/decl/psionic_power | ||
/// Ability name. | ||
var/name | ||
/// Description of what the ability does. | ||
var/desc | ||
/// Spell object to spawn. | ||
var/obj/item/spell/spell_to_spawn | ||
/// Ability flags define who can pick an ability - ship characters, adminspawn characters, antags. | ||
var/ability_flags | ||
/// Minimum required rank to use an ability. | ||
var/minimum_rank = PSI_RANK_SENSITIVE | ||
/// Point shop cost. | ||
var/point_cost = 1 |
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.