Fuckup of the year

This commit is contained in:
kevinz000
2018-05-21 16:06:55 -07:00
committed by KorPhaeron
parent e10535d3ad
commit bdee2ed156
+2 -2
View File
@@ -141,13 +141,13 @@
/datum/techweb/proc/add_point_type(type, amount)
if(!SSresearch.point_types[type] || (amount <= 0))
return FALSE
research_points[type] = amount
research_points[type] += amount
return TRUE
/datum/techweb/proc/modify_point_type(type, amount)
if(!SSresearch.point_types[type])
return FALSE
research_points[type] = max(0, research_points[type] - amount)
research_points[type] = max(0, research_points[type] + amount)
return TRUE
/datum/techweb/proc/remove_point_type(type, amount)