Removed random extra costs from flatpacks.

This commit is contained in:
ComicIronic
2014-11-26 18:52:20 +00:00
parent ea0539753a
commit 344b3c236a

View File

@@ -58,12 +58,13 @@
var/techtotal = src.TechTotal() / 2 var/techtotal = src.TechTotal() / 2
materials["$iron"] += techtotal * round(rand(300, 1500), 100) * modifier materials["$iron"] += techtotal * round(rand(300, 1500), 100) * modifier
materials["$glass"] += techtotal * round(rand(150, 300), 50) * modifier materials["$glass"] += techtotal * round(rand(150, 300), 50) * modifier
if(prob(techtotal * 15)) //let's add an extra cost of some medium-rare material - sure a lot of items if(src.design_type == "item")
materials[pick("$plasma", "$uranium", "$gold", "$silver")] += techtotal * round(rand(50, 250), 10) * modifier if(prob(techtotal * 15)) //let's add an extra cost of some medium-rare material - sure a lot of items
if(prob(techtotal * 8))//and another cost, because we can - can proc for some items materials[pick("$plasma", "$uranium", "$gold", "$silver")] += techtotal * round(rand(50, 250), 10) * modifier
materials[pick("$plasma", "$uranium", "$gold", "$silver")] += techtotal * round(rand(50, 250), 10) * modifier if(prob(techtotal * 8))//and another cost, because we can - can proc for some items
if(techtotal >= 7) //let's add something REALLY rare - bananium and phazon removed for now materials[pick("$plasma", "$uranium", "$gold", "$silver")] += techtotal * round(rand(50, 250), 10) * modifier
materials[/*pick(*/"$diamond"/*, "$clown", "$phazon")*/] += techtotal * round(rand(10, 150), 10) * modifier if(techtotal >= 7) //let's add something REALLY rare - bananium and phazon removed for now
materials[/*pick(*/"$diamond"/*, "$clown", "$phazon")*/] += techtotal * round(rand(10, 150), 10) * modifier
for(var/matID in materials) for(var/matID in materials)
materials[matID] -= (materials[matID] % 10) //clean up the numbers materials[matID] -= (materials[matID] % 10) //clean up the numbers