[MIRROR] Adds a missing + in techwebs point adjustment code (#6845)
* Adds a missing + in techwebs point adjustment code * Update _techweb.dm
This commit is contained in:
committed by
kevinz000
parent
b89254ced7
commit
37f2768380
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user