config values
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user