config values

This commit is contained in:
Timothy Teakettle
2020-10-26 20:27:02 +00:00
parent 38313fa362
commit 2b00f2bb2f
3 changed files with 6 additions and 5 deletions

View File

@@ -699,10 +699,11 @@
//new size detected
holder.resize = features["body_size"] / old_size
holder.update_transform()
if(features["body_size"] < 1 && old_size >= 1)
var/penalty_threshold = CONFIG_GET(number/threshold_body_size_penalty)
if(features["body_size"] < penalty_threshold && old_size >= penalty_threshold)
holder.maxhealth -= 10 //reduce the maxhealth
else
if(old_size < 1 && features["body_size"] >= 1)
if(old_size < penalty_threshold && features["body_size"] >= penalty_threshold)
holder.maxhealth += 10 //give the maxhealth back