Fixes a few issues with the mechfab, fixes #10852

This commit is contained in:
Kelenius
2015-08-25 12:28:20 +03:00
parent dd11a301e4
commit 1ac8b94427
3 changed files with 2 additions and 8 deletions

View File

@@ -584,6 +584,6 @@
id = "sflash"
req_tech = list(TECH_MAGNET = 3, TECH_COMBAT = 2)
build_type = MECHFAB
materials = list("metal" = 750, "glass" = 750)
materials = list(DEFAULT_WALL_MATERIAL = 750, "glass" = 750)
build_path = /obj/item/device/flash/synthetic
category = "Misc"

View File

@@ -98,7 +98,7 @@ research holder datum.
var/datum/design/A = known_designs[i]
if(A.id == D.id) // We are guaranteed to reach this if the ids are the same, because sort_string will also be the same
return
if(A.sort_string >= D.sort_string)
if(A.sort_string > D.sort_string)
known_designs.Insert(i, D)
return
known_designs.Add(D)