mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-23 05:07:51 +01:00
Configuration Controller (#7857)
This commit is contained in:
@@ -336,7 +336,7 @@
|
||||
return
|
||||
|
||||
//Disabled in config.
|
||||
else if(!config.revival_cloning)
|
||||
else if(!CONFIG_GET(flag/revival_cloning)) // CHOMPEdit
|
||||
set_temp("Error: Unable to initiate growing cycle.", "danger")
|
||||
tgui_modal_clear(src)
|
||||
return
|
||||
|
||||
@@ -105,7 +105,7 @@
|
||||
H.dna.digitigrade = R.dna.digitigrade // ensure cloned DNA is set appropriately from record??? for some reason it doesn't get set right despite the override to datum/dna/Clone()
|
||||
|
||||
//Apply damage
|
||||
H.adjustCloneLoss((H.getMaxHealth() - config.health_threshold_dead)*-0.75)
|
||||
H.adjustCloneLoss((H.getMaxHealth() - CONFIG_GET(number/health_threshold_dead))*-0.75) // CHOMPEdit
|
||||
H.Paralyse(4)
|
||||
H.updatehealth()
|
||||
|
||||
@@ -197,7 +197,7 @@
|
||||
|
||||
/obj/machinery/clonepod/transhuman/get_completion()
|
||||
if(occupant)
|
||||
return 100 * ((occupant.health + abs(config.health_threshold_dead)) / (occupant.maxHealth + abs(config.health_threshold_dead)))
|
||||
return 100 * ((occupant.health + abs(CONFIG_GET(number/health_threshold_dead))) / (occupant.maxHealth + abs(CONFIG_GET(number/health_threshold_dead)))) // CHOMPEdit
|
||||
return 0
|
||||
|
||||
//Synthetic version
|
||||
|
||||
Reference in New Issue
Block a user