Changes emp_vulnerability from the probably to the division of the emp severity. Higher is better.
This commit is contained in:
@@ -99,7 +99,7 @@
|
||||
desc = "A basic device designed to mimic the functions of a human stomach"
|
||||
organ_flags = ORGAN_SYNTHETIC
|
||||
maxHealth = STANDARD_ORGAN_THRESHOLD * 0.5
|
||||
var/emp_vulnerability = 80 //Chance of permanent effects if emp-ed.
|
||||
var/emp_vulnerability = 1 //The value the severity of emps are divided by to determine the likelihood of permanent damage.
|
||||
|
||||
/obj/item/organ/stomach/cybernetic/tier2
|
||||
name = "cybernetic stomach"
|
||||
@@ -107,7 +107,7 @@
|
||||
desc = "An electronic device designed to mimic the functions of a human stomach. Handles disgusting food a bit better."
|
||||
maxHealth = 1.5 * STANDARD_ORGAN_THRESHOLD
|
||||
disgust_metabolism = 2
|
||||
emp_vulnerability = 40
|
||||
emp_vulnerability = 2
|
||||
|
||||
/obj/item/organ/stomach/cybernetic/tier3
|
||||
name = "upgraded cybernetic stomach"
|
||||
@@ -115,7 +115,7 @@
|
||||
desc = "An upgraded version of the cybernetic stomach, designed to improve further upon organic stomachs. Handles disgusting food very well."
|
||||
maxHealth = 2 * STANDARD_ORGAN_THRESHOLD
|
||||
disgust_metabolism = 3
|
||||
emp_vulnerability = 20
|
||||
emp_vulnerability = 3
|
||||
|
||||
/obj/item/organ/stomach/cybernetic/emp_act(severity)
|
||||
. = ..()
|
||||
@@ -124,7 +124,7 @@
|
||||
if(!COOLDOWN_FINISHED(src, severe_cooldown)) //So we cant just spam emp to kill people.
|
||||
owner.vomit(stun = FALSE)
|
||||
COOLDOWN_START(src, severe_cooldown, 10 SECONDS)
|
||||
if(prob(emp_vulnerability/severity)) //Chance of permanent effects
|
||||
if(prob(severity/emp_vulnerability)) //Chance of permanent effects
|
||||
organ_flags |= ORGAN_SYNTHETIC_EMP //Starts organ faliure - gonna need replacing soon.
|
||||
|
||||
/obj/item/organ/stomach/ipc
|
||||
|
||||
Reference in New Issue
Block a user