Configuration Controller (#7857)

This commit is contained in:
Selis
2024-04-05 07:44:20 +02:00
committed by GitHub
parent c542e3bac0
commit e1a987c25c
235 changed files with 3294 additions and 989 deletions
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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