Fixed not being able to sell research disks, and being able to re-sell disks by sending low-tech disks to reset the levels

This commit is contained in:
Ian Turk
2017-05-13 10:00:59 -06:00
parent 700988705e
commit fa4a54c43a
2 changed files with 1 additions and 6 deletions
+1 -1
View File
@@ -22,4 +22,4 @@
if(!V)
continue
var/datum/tech/tech = V
techLevels[tech.id] = tech.level
techLevels[tech.id] = max(techLevels[tech.id], tech.level)
-5
View File
@@ -203,7 +203,6 @@ research holder datum.
var/level = 1 //A simple number scale of the research level. Level 0 = Secret tech.
var/rare = 1 //How much CentCom wants to get that tech. Used in supply shuttle tech cost calculation.
var/list/req_tech = list() //List of ids associated values of techs required to research this tech. "id" = #
var/exported_level = 0
//Trunk Technologies (don't require any other techs and you start knowning them).
@@ -307,10 +306,6 @@ research holder datum.
if(current_level >= level)
return 0
if(exported_level == level)
return 0
exported_level = level
var/cost = 0
for(var/i=current_level+1, i<=level, i++)