mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 18:44:48 +01:00
Increases EMP Shriek Price on Cybernetic Revolution Rounds (#24698)
* matt request * better comments * Update code/modules/antagonists/changeling/powers/shriek.dm Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> --------- Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>
This commit is contained in:
@@ -241,12 +241,24 @@
|
||||
* * power_type - should be a define related to [/datum/action/changeling/var/power_type].
|
||||
*/
|
||||
/datum/antagonist/changeling/proc/get_powers_of_type(power_type)
|
||||
var/list/station_trait_restrictions = list(
|
||||
// "Station trait" = Replace 1st with 2nd when trait active
|
||||
STATION_TRAIT_CYBERNETIC_REVOLUTION = list(/datum/action/changeling/dissonant_shriek, /datum/action/changeling/dissonant_shriek/cyberrev)
|
||||
)
|
||||
|
||||
var/list/powers = list()
|
||||
for(var/power_path in subtypesof(/datum/action/changeling))
|
||||
var/datum/action/changeling/power = power_path
|
||||
if(initial(power.power_type) != power_type)
|
||||
continue
|
||||
powers += power_path
|
||||
|
||||
for(var/trait in station_trait_restrictions)
|
||||
if(HAS_TRAIT(SSstation, trait))
|
||||
powers -= station_trait_restrictions[trait][1]
|
||||
else
|
||||
powers -= station_trait_restrictions[trait][2]
|
||||
|
||||
return powers
|
||||
|
||||
/**
|
||||
|
||||
@@ -55,3 +55,7 @@
|
||||
L.break_light_tube()
|
||||
empulse(get_turf(user), 3, 5, 1)
|
||||
return TRUE
|
||||
|
||||
/// A more expensive version, used during rounds with cyber rev station trait for balance reasons.
|
||||
/datum/action/changeling/dissonant_shriek/cyberrev
|
||||
dna_cost = 5
|
||||
|
||||
Reference in New Issue
Block a user