More changes

- Adds more variants
- Adds personalized power cells for the shield generator.
- Adds more variants.
- Fixes a mixup of words.
- Rebalances some of the modifiers to make it so they ramp up slower & have at least some effect when nearing the end of the charge.
- Fixes a dividing by 0 bug on specialty shield generators, such as the 'parry' one.
- Adds a huge text wall to explain this stuff to future people.

- Power cells now take longer before starting to charge and now charge slower by default.
This commit is contained in:
C.L
2022-09-12 03:39:40 -04:00
parent 937026bd90
commit 7fbbee9782
3 changed files with 160 additions and 38 deletions
+1 -1
View File
@@ -76,7 +76,7 @@
// 0 = immune || < 0 = heals || 1 = full damage || >1 = increased damage.
// It should never be below zero as it is not intended to do such, but you are free to experiment!
// Ex: Max_brute_resistance = 0. Min_brute resistance = 1. When started, provides 100% resistance to brute. When cell is dying, goes down to 0% resistance.
// Max is the MAXIMUM % multiplier that will be taken at a low charge. Min is the MINIMUM % multiplier that will be taken at a full charge.
// Max is the MAXIMUM % multiplier that will be taken at a MAX charge. Min is the MINIMUM % multiplier that will be taken at a MINIMUM charge.
// Think of it like this: Minimum = what happens at minimum charge. Max = what happens at maximum charge.
// Why do I mention this so much? Because even /I/ got confused, and I wrote this thing!
var/min_damage_resistance
+56 -7
View File
@@ -142,7 +142,7 @@
//Shield variants.
//Simple. Goes from 100% resistance to 0% resistance depending on charge.
//Simple. Goes from 100% resistance to 0% resistance depending on charge. This is mostly an example of a shield variant.
/datum/modifier/shield_projection/bruteburn
max_brute_resistance = 0
effective_brute_resistance = 1
@@ -154,19 +154,25 @@
max_brute_resistance = 0.5
max_fire_resistance = 0.5
/datum/modifier/shield_projection/security // Security backpack.
//SECURITY VARIANTS
/datum/modifier/shield_projection/security // Security backpack. 50% resistance at full charge. 90% resistance for the last shot taken.
max_brute_resistance = 0.5
min_brute_resistance = 0.9
effective_brute_resistance = 1
max_fire_resistance = 0.5
min_fire_resistance = 0.9
effective_fire_resistance = 1
max_hal_resistance = 0.5
min_hal_resistance = 0.9
effective_hal_resistance = 1
/datum/modifier/shield_projection/security/weak // Security belt.
max_brute_resistance = 0.75
min_brute_resistance = 0.95
max_fire_resistance = 0.75
min_fire_resistance = 0.95
max_hal_resistance = 0.75
/datum/modifier/shield_projection/security/strong // Dunno. Upgraded variant of security backpack?
@@ -175,11 +181,15 @@
max_hal_resistance = 0.25
siemens_coefficient = 1.5 //Not as weak as normal, but still weak.
/datum/modifier/shield_projection/mining //Base mining belt. 25% resistance.
max_brute_resistance = 0.75
//MINING VARIANTS
/datum/modifier/shield_projection/mining //Base mining belt. 45% resistance that fades to 15% resistance
max_brute_resistance = 0.55
min_brute_resistance = 0.85
effective_brute_resistance = 1
max_fire_resistance = 0.75
max_fire_resistance = 0.55
min_brute_resistance = 0.85
effective_fire_resistance = 1
max_hal_resistance = 1.5 // No mobs should be shooting you with halloss. If this happens, it means you're using it wrong!!!
@@ -188,14 +198,31 @@
disable_duration_percent = 0.75 //Miners often come into contact with things that can stun them.
/datum/modifier/shield_projection/mining/strong // Mining belt, but upgraded. Even weaker to halloss! Tasers WILL destroy you. Don't try to be superman.
/datum/modifier/shield_projection/mining/strong // Mining belt, but upgraded. Even weaker to halloss! It also scales from .5 to .75 instead of back to 1.0!
max_brute_resistance = 0.5
min_brute_resistance = 0.75
max_fire_resistance = 0.5
min_fire_resistance = 0.75
disable_duration_percent = 0.5
max_hal_resistance = 2
min_hal_resistance = 2
//MISC VARIANTS
/datum/modifier/shield_projection/biohazard //The odd-ball damage types. Provides near-complete immunity while it's up.
min_tox_resistance = 0.25
max_tox_resistance = 0
effective_tox_resistance = 1
min_oxy_resistance = 0.25
max_oxy_resistance = 0
effective_oxy_resistance = 1
min_clone_resistance = 0.25
max_clone_resistance = 0
effective_clone_resistance = 1
/datum/modifier/shield_projection/admin // Adminbus.
on_created_text = "<span class='notice'>Your shield generator activates and you feel the power of the tesla buzzing around you.</span>"
on_expired_text = "<span class='warning'>Your shield generator deactivates, leaving you feeling weak and vulnerable.</span>"
@@ -230,4 +257,26 @@
max_fire_resistance = 2
min_fire_resistance = 2
effective_fire_resistance = 1
effective_fire_resistance = 1
/datum/modifier/shield_projection/inverted //Becomes stronger the weaker the cell is. Means the last shot taken will be the weakest. Example just to show it can be done.
max_brute_resistance = 1
min_brute_resistance = 0
effective_brute_resistance = 1
max_fire_resistance = 1
min_fire_resistance = 0
effective_fire_resistance = 1
/datum/modifier/shield_projection/parry //Intended for 'parry' shields, which only last for a single second before running out of charge
max_brute_resistance = 0
min_brute_resistance = 0
effective_brute_resistance = 1
max_fire_resistance = 0
min_fire_resistance = 0
effective_fire_resistance = 1
max_hal_resistance = 0
min_hal_resistance = 0
effective_hal_resistance = 1