Merge pull request #4411 from scoopscoop/protolatherepeater

Clamp function fixed
This commit is contained in:
Swag McYolosteinen
2014-08-13 18:41:58 +02:00
+1 -1
View File
@@ -345,7 +345,7 @@ won't update every console in existence) but it's more of a hassle to do. Also,
if(being_built)
var/power = 2000
var/amount=text2num(href_list["amount"])
amount = max(10, min(1, amount))
amount = max(1, min(10, amount))
for(var/M in being_built.materials)
power += round(being_built.materials[M] * amount / 5)
power = max(2000, power)