Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //LITHIUM PRINTERS 2 WIP CONFIG
- //by 2REK(steam: przemo0434) September 2017
- //Note that editing default mechanics may result in weird things happening with the printers.
- //Please use responsibly.
- //Tip: don't create "clusterfuck" situations
- //ex. raise storage upgrade size without raising maximum storage of printers.
- lp2 = {}
- lp2.general = {
- //F4 MENU SETTINGS
- //what is to be used in f4 menu instead of shop entity
- --
- --put true if you want printers to be listed in f4 menu
- f4printers = true,
- --
- --put true if you want printers upgrades to be listed in f4 menu
- f4printersUpgrades = true,
- --
- --put true if you want racks to be listed in f4 menu
- f4rack = true,
- --
- --put true if you want racks upgrades to be listed in f4 menu
- f4rackUpgrades = true,
- --
- --put true if you want printers to be listed in shopping stand menu
- shopPrinters = true,
- --
- --put true if you want printers upgrades to be listed in shopping stand menu
- shopPrintersUpgrades = true,
- --
- --put true if you want racks to be listed in shopping stand menu
- shopRack = true,
- --put true if you want racks upgrades and rocks upgrades to be listed in shopping stand menu
- shopRackUpgrades = true,
- }
- lp2.lithiumPrinters = {
- //
- // economic printer
- [1] = {
- printerPrice = 1000, //THIS VALUE SETS PRICE OF THE PRINTER IN THE SHOP
- baseProductionTime = 10, //THIS VALUE SETS TIME BETWEEN MONEY BEING PRINTED
- baseProductionValue = 50, //THIS VALUE SETS HOW MUCH MONEY IS PRINTED
- baseMaximumStorage = 500, //THIS VALUE SETS HOW MUCH MONEY CAN BE STORED
- baseMaximumPoints = 0, //THIS VALUE SETS HOW MUCH POINTS CAN PRINTER STORE
- baseMaximumUpgrades = 0, //THIS VALUE SETS HOW MUCH UPGRADES CAN PRINTER HAVE
- baseMaximumTemperature = 100, //THIS VALUE SETS HOW HIGH TEMPERATURE CAN PRINTER WITHSTAND (tmperature is gained by 1 degree at a time)
- },
- //
- // bronze printer
- [2] = {
- printerPrice = 2000,
- baseProductionTime = 20,
- baseProductionValue = 100,
- baseMaximumStorage = 2500,
- baseMaximumPoints = 10,
- baseMaximumUpgrades = 1,
- baseMaximumTemperature = 100,
- },
- //
- // iron printer
- [3] = {
- printerPrice = 5000,
- baseProductionTime = 30,
- baseProductionValue = 200,
- baseMaximumStorage = 3000,
- baseMaximumPoints = 25,
- baseMaximumUpgrades = 2,
- baseMaximumTemperature = 100,
- },
- //
- // silver printer
- [4] = {
- printerPrice = 7500,
- baseProductionTime = 35,
- baseProductionValue = 250,
- baseMaximumStorage = 5000,
- baseMaximumPoints = 35,
- baseMaximumUpgrades = 3,
- baseMaximumTemperature = 100,
- },
- //
- // obsidian printer
- [5] = {
- printerPrice = 9000,
- baseProductionTime = 40,
- baseProductionValue = 350,
- baseMaximumStorage = 7000,
- baseMaximumPoints = 50,
- baseMaximumUpgrades = 4,
- baseMaximumTemperature = 100,
- },
- //
- // donator printer
- [6] = {
- printerPrice = 5000,
- baseProductionTime = 40,
- baseProductionValue = 500,
- baseMaximumStorage = 10000,
- baseMaximumPoints = 100,
- baseMaximumUpgrades = 5,
- baseMaximumTemperature = 100,
- },
- }
- lp2.lithiumUpgradesData = {
- armor1 = 10, //HOW MUCH HEALTH IS ADDED WITH EACH ARMOR
- armor1price = 100,
- armor2 = 25,
- armor2price = 100,
- armor3 = 50,
- armor3price = 100,
- cooler1 = 0.95, //HOW MUCH HEAT GAIN IS TAKEN AWAY
- cooler1price = 100,
- cooler2 = 0.9,
- cooler2price = 100,
- cooler3 = 0.85,
- cooler3price = 100,
- oc1 = 0.95, //HOW PRINT TIME IS REDUCED (0.95 - 5% etc.)
- oc1price = 100,
- oc2 = 0.9,
- oc2price = 100,
- oc3 = 0.85,
- oc3price = 100,
- power1 = 0.05, //HOW MUCH PRINT VALUE IS ADDED (0.05 - 5% etc.)
- power1price = 100,
- power2 = 0.1,
- power2price = 100,
- power3 = 0.15,
- power3price = 100,
- storage1 = 1000, //HOW MUCH STORAGE SPACE IS ADDED
- storage1price = 100,
- storage2 = 5000,
- storage2price = 100,
- storage3 = 10000,
- storage3price = 100,
- rackStandardPrice = 100, //STANDARD AND SERVER RACK PRICE
- rackServerPrice = 100,
- rackStorage = 10000,
- rackLargeProdTime = 5, // CHANGE PRODUCTION TIME OF RACK HERE
- rackStoragePrice = 100,
- rackArmorStandardPrice = 100,
- rackArmorServerPrice = 100,
- rackServerCooler = 100,
- }
- lp2.lithiumUpgrades = {
- //ARMOR
- [1] = {
- [1] = {
- healthAdded = 10,
- upgradeName = "Small Armor",
- entityName = "lp2_armor_1",
- onRemove = function(printerEntity)
- local ent = printerEntity
- ent.data.health = ent.data.health - lp2.lithiumUpgrades[1][1].healthAdded
- ent:SendToServer()
- end
- },
- [2] = {
- healthAdded = 25,
- upgradeName = "Medium Armor",
- entityName = "lp2_armor_2",
- onRemove = function(printerEntity)
- local ent = printerEntity
- ent.data.health = ent.data.health - lp2.lithiumUpgrades[1][2].healthAdded
- ent:SendToServer()
- end
- },
- [3] = {
- healthAdded = 50,
- upgradeName = "Large Armor",
- entityName = "lp2_armor_3",
- onRemove = function(printerEntity)
- local ent = printerEntity
- ent.data.health = ent.data.health - lp2.lithiumUpgrades[1][3].healthAdded
- ent:SendToServer()
- end
- },
- },
- //COOLER
- [2] = {
- [1] = {
- coolingEffect = 0.95,
- upgradeName = "Small Cooler",
- entityName = "lp2_cooler_1",
- onRemove = function(printerEntity)
- local ent = printerEntity
- ent.data.heatGainFactor = ent.data.heatGainFactor + (1 - lp2.lithiumUpgrades[2][1].coolingEffect)
- ent.data.heatCoolFactor = ent.data.heatCoolFactor - (1 - lp2.lithiumUpgrades[2][1].coolingEffect)
- ent:SendToServer()
- end
- },
- [2] = {
- coolingEffect = 0.9,
- upgradeName = "Medium Cooler",
- entityName = "lp2_cooler_2",
- onRemove = function(printerEntity)
- local ent = printerEntity
- ent.data.heatGainFactor = ent.data.heatGainFactor + (1 - lp2.lithiumUpgrades[2][2].coolingEffect)
- ent.data.heatCoolFactor = ent.data.heatCoolFactor - (1 - lp2.lithiumUpgrades[2][2].coolingEffect)
- ent:SendToServer()
- end
- },
- [3] = {
- coolingEffect = 0.85,
- upgradeName = "Large Cooler",
- entityName = "lp2_cooler_3",
- onRemove = function(printerEntity)
- local ent = printerEntity
- ent.data.heatGainFactor = ent.data.heatGainFactor + (1 - lp2.lithiumUpgrades[2][3].coolingEffect)
- ent.data.heatCoolFactor = ent.data.heatCoolFactor - (1 - lp2.lithiumUpgrades[2][3].coolingEffect)
- ent:SendToServer()
- end
- },
- },
- //OVERCLOCKER
- [3] = {
- [1] = {
- overclockerEffect = 0.95,
- upgradeName = "Small Overclocker",
- entityName = "lp2_overclocker_1",
- onRemove = function(printerEntity)
- local ent = printerEntity
- //ent.data.heatCool = ent.data.heatCool - lp2.lithiumUpgrades[2][1].coolingAdded
- ent.data.prodTimeFactor = math.Round(ent.data.prodTimeFactor * 1.05, 1)
- ent:SendToServer()
- end
- },
- [2] = {
- overclockerEffect = 0.9,
- upgradeName = "Medium Overclocker",
- entityName = "lp2_overclocker_2",
- onRemove = function(printerEntity)
- local ent = printerEntity
- //ent.data.heatCool = ent.data.heatCool - lp2.lithiumUpgrades[2][2].coolingAdded
- ent.data.prodTimeFactor = math.Round(ent.data.prodTimeFactor * 1.1, 1)
- ent:SendToServer()
- end
- },
- [3] = {
- overclockerEffect = 0.85,
- upgradeName = "Large Overclocker",
- entityName = "lp2_overclocker_3",
- onRemove = function(printerEntity)
- local ent = printerEntity
- //ent.data.heatCool = ent.data.heatCool - lp2.lithiumUpgrades[2][3].coolingAdded
- ent.data.prodTimeFactor = math.Round(ent.data.prodTimeFactor * 1.15, 1)
- ent:SendToServer()
- end
- },
- },
- //POWER
- [4] = {
- [1] = {
- powerEffect = 0.05,
- upgradeName = "Small Power Supply",
- entityName = "lp2_overclocker_1",
- onRemove = function(printerEntity)
- local ent = printerEntity
- ent.data.prodValueFactor = ent.data.prodValueFactor -lp2.lithiumUpgrades[4][1].powerEffect
- ent.data.prodValue = ent.data.prodValue * (ent.data.prodValueFactor * (1-lp2.lithiumUpgrades[4][1].powerEffect))
- ent.data.prodValue = math.Round(ent.data.prodValue)
- ent:SendToServer()
- end
- },
- [2] = {
- powerEffect = 0.1,
- upgradeName = "Medium Power Supply",
- entityName = "lp2_overclocker_2",
- onRemove = function(printerEntity)
- local ent = printerEntity
- ent.data.prodValueFactor = ent.data.prodValueFactor -lp2.lithiumUpgrades[4][2].powerEffect
- ent.data.prodValue = ent.data.prodValue * (ent.data.prodValueFactor * (1-lp2.lithiumUpgrades[4][2].powerEffect))
- ent.data.prodValue = math.Round(ent.data.prodValue)
- ent:SendToServer()
- end
- },
- [3] = {
- powerEffect = 0.15,
- upgradeName = "Large Power Supply",
- entityName = "lp2_overclocker_3",
- onRemove = function(printerEntity)
- local ent = printerEntity
- ent.data.prodValueFactor = ent.data.prodValueFactor -lp2.lithiumUpgrades[4][3].powerEffect
- ent.data.prodValue = ent.data.prodValue * (ent.data.prodValueFactor * (1-lp2.lithiumUpgrades[4][3].powerEffect))
- ent.data.prodValue = math.Round(ent.data.prodValue)
- ent:SendToServer()
- end
- },
- },
- //STORAGE
- [5] = {
- [1] = {
- storageEffect = 1000,
- upgradeName = "Small Storage",
- entityName = "lp2_storage_1",
- onRemove = function(printerEntity)
- local ent = printerEntity
- ent.data.storageMax = ent.data.storageMax - lp2.lithiumUpgrades[5][1].storageEffect
- ent.data.storageMax = math.Round(ent.data.storageMax)
- ent:SendToServer()
- end
- },
- [2] = {
- storageEffect = 5000,
- upgradeName = "Medium Storage",
- entityName = "lp2_storage_2",
- onRemove = function(printerEntity)
- local ent = printerEntity
- ent.data.storageMax = ent.data.storageMax - lp2.lithiumUpgrades[5][2].storageEffect
- ent.data.storageMax = math.Round(ent.data.storageMax)
- ent:SendToServer()
- end
- },
- [3] = {
- storageEffect = 10000,
- upgradeName = "Large Storage",
- entityName = "lp2_storage_3",
- onRemove = function(printerEntity)
- local ent = printerEntity
- ent.data.storageMax = ent.data.storageMax - lp2.lithiumUpgrades[5][3].storageEffect
- ent.data.storageMax = math.Round(ent.data.storageMax)
- ent:SendToServer()
- end
- },
- },
- }
- //
- //F4 DONATOR CONFIG
- //
- timer.Simple(0.1, function()
- DarkRP.createCategory{
- name = "Lithium Printers 2 - Printers",
- categorises = "entities",
- startExpanded = false,
- color = Color(105, 105, 155, 255),
- canSee = function(ply) return true end,
- sortOrder = 1,
- }
- DarkRP.createCategory{
- name = "Lithium Printers 2 - Upgrades",
- categorises = "entities",
- startExpanded = false,
- color = Color(105, 105, 155, 255),
- canSee = function(ply) return true end,
- sortOrder = 1,
- }
- DarkRP.createCategory{
- name = "Lithium Printers 2 - Racks",
- categorises = "entities",
- startExpanded = false,
- color = Color(105, 105, 155, 255),
- canSee = function(ply) return true end,
- sortOrder = 1,
- }
- if lp2.general.f4printers == true then
- DarkRP.createEntity( "Economic Printer", {
- ent = "lp2_printer_1",
- model = "models/2rek/lithium_printers_2/lp2_printer1.mdl",
- price = lp2.lithiumPrinters[1].printerPrice,
- max = 2,
- cmd = "lp2_buyEconomicPrinter",
- category = "Lithium Printers 2 - Printers",
- sortOrder = 1,
- } )
- DarkRP.createEntity( "Bronze Printer", {
- ent = "lp2_printer_2",
- model = "models/2rek/lithium_printers_2/lp2_printer2.mdl",
- price = lp2.lithiumPrinters[2].printerPrice,
- max = 2,
- cmd = "lp2_buyBronzePrinter",
- category = "Lithium Printers 2 - Printers",
- sortOrder = 2,
- } )
- DarkRP.createEntity( "Iron Printer", {
- ent = "lp2_printer_3",
- model = "models/2rek/lithium_printers_2/lp2_printer3.mdl",
- price = lp2.lithiumPrinters[3].printerPrice,
- max = 2,
- cmd = "lp2_buyIronPrinter",
- category = "Lithium Printers 2 - Printers",
- sortOrder = 3,
- } )
- DarkRP.createEntity( "Silver Printer", {
- ent = "lp2_printer_4",
- model = "models/2rek/lithium_printers_2/lp2_printer4.mdl",
- price = lp2.lithiumPrinters[4].printerPrice,
- max = 2,
- cmd = "lp2_buySilverPrinter",
- category = "Lithium Printers 2 - Printers",
- sortOrder = 4,
- } )
- DarkRP.createEntity( "Obsidian Printer", {
- ent = "lp2_printer_5",
- model = "models/2rek/lithium_printers_2/lp2_printer5.mdl",
- price = lp2.lithiumPrinters[5].printerPrice,
- max = 2,
- cmd = "lp2_buyObsidianPrinter",
- category = "Lithium Printers 2 - Printers",
- sortOrder = 5,
- } )
- DarkRP.createEntity( "Donator Printer", {
- ent = "lp2_printer_6",
- model = "models/2rek/lithium_printers_2/lp2_printer6.mdl",
- price = lp2.lithiumPrinters[6].printerPrice,
- max = 2,
- cmd = "lp2_buyDonatorPrinter",
- category = "Lithium Printers 2 - Printers",
- sortOrder = 6,
- } )
- end
- if lp2.general.f4printersUpgrades == true then
- DarkRP.createEntity( "Printer Armor 1", {
- ent = "lp2_armor_1",
- model = "models/2rek/lithium_printers_2/lp2_armor1.mdl",
- price = lp2.lithiumUpgradesData.armor1price,
- max = 2,
- cmd = "lp2_buyPrinterArmor1",
- category = "Lithium Printers 2 - Upgrades",
- sortOrder = 1,
- } )
- DarkRP.createEntity( "Printer Armor 2", {
- ent = "lp2_armor_2",
- model = "models/2rek/lithium_printers_2/lp2_armor2.mdl",
- price = lp2.lithiumUpgradesData.armor2price,
- max = 2,
- cmd = "lp2_buyPrinterArmor2",
- category = "Lithium Printers 2 - Upgrades",
- sortOrder = 2,
- } )
- DarkRP.createEntity( "Printer Armor 3", {
- ent = "lp2_armor_3",
- model = "models/2rek/lithium_printers_2/lp2_armor3.mdl",
- price = lp2.lithiumUpgradesData.armor3price,
- max = 2,
- cmd = "lp2_buyPrinterArmor3",
- category = "Lithium Printers 2 - Upgrades",
- sortOrder = 3,
- } )
- DarkRP.createEntity( "Printer Cooler 1", {
- ent = "lp2_cooler_1",
- model = "models/2rek/lithium_printers_2/lp2_cooler1.mdl",
- price = lp2.lithiumUpgradesData.cooler1price,
- max = 2,
- cmd = "lp2_buyPrinterCooler1",
- category = "Lithium Printers 2 - Upgrades",
- sortOrder = 4,
- } )
- DarkRP.createEntity( "Printer Cooler 2", {
- ent = "lp2_cooler_2",
- model = "models/2rek/lithium_printers_2/lp2_cooler2.mdl",
- price = lp2.lithiumUpgradesData.cooler2price,
- max = 2,
- cmd = "lp2_buyPrinterCooler2",
- category = "Lithium Printers 2 - Upgrades",
- sortOrder = 5,
- } )
- DarkRP.createEntity( "Printer Cooler 3", {
- ent = "lp2_cooler_3",
- model = "models/2rek/lithium_printers_2/lp2_cooler3.mdl",
- price = lp2.lithiumUpgradesData.cooler3price,
- max = 2,
- cmd = "lp2_buyPrinterCooler3",
- category = "Lithium Printers 2 - Upgrades",
- sortOrder = 6,
- } )
- DarkRP.createEntity( "Printer Overclocker 1", {
- ent = "lp2_overclocker_1",
- model = "models/2rek/lithium_printers_2/lp2_oc1.mdl",
- price = lp2.lithiumUpgradesData.oc1price,
- max = 2,
- cmd = "lp2_buyPrinterOc1",
- category = "Lithium Printers 2 - Upgrades",
- sortOrder = 7,
- } )
- DarkRP.createEntity( "Printer Overclocker 2", {
- ent = "lp2_overclocker_2",
- model = "models/2rek/lithium_printers_2/lp2_oc2.mdl",
- price = lp2.lithiumUpgradesData.oc2price,
- max = 2,
- cmd = "lp2_buyPrinterOc2",
- category = "Lithium Printers 2 - Upgrades",
- sortOrder = 8,
- } )
- DarkRP.createEntity( "Printer Overclocker 3", {
- ent = "lp2_overclocker_3",
- model = "models/2rek/lithium_printers_2/lp2_oc3.mdl",
- price = lp2.lithiumUpgradesData.oc3price,
- max = 2,
- cmd = "lp2_buyPrinterOc3",
- category = "Lithium Printers 2 - Upgrades",
- sortOrder = 9,
- } )
- DarkRP.createEntity( "Printer Power 1", {
- ent = "lp2_power_1",
- model = "models/2rek/lithium_printers_2/lp2_power1.mdl",
- price = lp2.lithiumUpgradesData.power1price,
- max = 2,
- cmd = "lp2_buyPrinterPower1",
- category = "Lithium Printers 2 - Upgrades",
- sortOrder = 10,
- } )
- DarkRP.createEntity( "Printer Power 2", {
- ent = "lp2_power_2",
- model = "models/2rek/lithium_printers_2/lp2_power2.mdl",
- price = lp2.lithiumUpgradesData.power2price,
- max = 2,
- cmd = "lp2_buyPrinterPower2",
- category = "Lithium Printers 2 - Upgrades",
- sortOrder = 11,
- } )
- DarkRP.createEntity( "Printer Power 3", {
- ent = "lp2_power_3",
- model = "models/2rek/lithium_printers_2/lp2_power3.mdl",
- price = lp2.lithiumUpgradesData.power3price,
- max = 2,
- cmd = "lp2_buyPrinterPower3",
- category = "Lithium Printers 2 - Upgrades",
- sortOrder = 12,
- } )
- DarkRP.createEntity( "Printer Storage 1", {
- ent = "lp2_storage_1",
- model = "models/2rek/lithium_printers_2/lp2_storage1.mdl",
- price = lp2.lithiumUpgradesData.storage1price,
- max = 2,
- cmd = "lp2_buyPrinterStorage1",
- category = "Lithium Printers 2 - Upgrades",
- sortOrder = 13,
- } )
- DarkRP.createEntity( "Printer Storage 2", {
- ent = "lp2_storage_2",
- model = "models/2rek/lithium_printers_2/lp2_storage2.mdl",
- price = lp2.lithiumUpgradesData.storage2price,
- max = 2,
- cmd = "lp2_buyPrinterStorage2",
- category = "Lithium Printers 2 - Upgrades",
- sortOrder = 14,
- } )
- DarkRP.createEntity( "Printer Storage 3", {
- ent = "lp2_storage_3",
- model = "models/2rek/lithium_printers_2/lp2_storage3.mdl",
- price = lp2.lithiumUpgradesData.storage3price,
- max = 2,
- cmd = "lp2_buyPrinterStorage3",
- category = "Lithium Printers 2 - Upgrades",
- sortOrder = 15,
- } )
- end
- if lp2.general.f4rack == true then
- DarkRP.createEntity( "Printer Rack", {
- ent = "lp2_rack_small",
- model = "models/2rek/lithium_printers_2/lp2_rack_small.mdl",
- price = lp2.lithiumUpgradesData.rackStandardPrice,
- max = 2,
- cmd = "lp2_buyPrinterRack",
- category = "Lithium Printers 2 - Racks",
- sortOrder = 1,
- } )
- DarkRP.createEntity( "Server Rack", {
- ent = "lp2_rack_large",
- model = "models/2rek/lithium_printers_2/lp2_rack_large.mdl",
- price = lp2.lithiumUpgradesData.rackServerPrice,
- max = 2,
- cmd = "lp2_buyServerRack",
- category = "Lithium Printers 2 - Racks",
- sortOrder = 2,
- } )
- end
- if lp2.general.f4rackUpgrades == true then
- DarkRP.createEntity( "Printer Rack - Armor", {
- ent = "lp2_rack_armor_small",
- model = "models/2rek/lithium_printers_2/lp2_armor_small.mdl",
- price = lp2.lithiumUpgradesData.rackArmorStandardPrice,
- max = 2,
- cmd = "lp2_buyPrinterRackArmor",
- category = "Lithium Printers 2 - Racks",
- sortOrder = 3,
- } )
- DarkRP.createEntity( "Server Rack - Armor", {
- ent = "lp2_rack_armor_large",
- model = "models/2rek/lithium_printers_2/lp2_armor_large.mdl",
- price = lp2.lithiumUpgradesData.rackArmorServerPrice,
- max = 2,
- cmd = "lp2_buyServerRackArmor",
- category = "Lithium Printers 2 - Racks",
- sortOrder = 4,
- } )
- DarkRP.createEntity( "Server Rack - Storage", {
- ent = "lp2_rack_storage",
- model = "models/2rek/lithium_printers_2/lp2_rackstorage.mdl",
- price = lp2.lithiumUpgradesData.rackStoragePrice,
- max = 2,
- cmd = "lp2_buyServerRackStorage",
- category = "Lithium Printers 2 - Racks",
- sortOrder = 5,
- } )
- DarkRP.createEntity( "Server Rack - Cooling", {
- ent = "lp2_rack_fan",
- model = "models/2rek/lithium_printers_2/lp2_serverfan.mdl",
- price = lp2.lithiumUpgradesData.rackServerCooler,
- max = 2,
- cmd = "lp2_buyServerRackFan",
- category = "Lithium Printers 2 - Racks",
- sortOrder = 6,
- } )
- end
- end)
- //
- //DO NOT CHANGE
- //
- lp2.lithiumSkillsDesc = {}
- lp2.lithiumSkillsDesc = {
- [1] = {
- skillName = "Production specialist I",
- skillCost = 10,
- skillDesc = "Increase production by 5%",
- skillFunction = function(printerEntity)
- local ent = printerEntity
- ent.data.prodValueFactor = ent.data.prodValueFactor * 1.05
- ent.data.prodValue = math.Round(ent.data.prodValue * ent.data.prodValueFactor)
- ent:SendToServer()
- end
- },
- [2] = {
- skillName = "Production specialist II",
- skillCost = 25,
- skillDesc = "Increase production by 10%",
- skillFunction = function(printerEntity)
- local ent = printerEntity
- ent.data.prodValueFactor = ent.data.prodValueFactor * 1.1
- ent.data.prodValue = math.Round(ent.data.prodValue * ent.data.prodValueFactor)
- ent:SendToServer()
- end
- },
- [3] = {
- skillName = "Production specialist III",
- skillCost = 50,
- skillDesc = "Increase production by 15%",
- skillFunction = function(printerEntity)
- local ent = printerEntity
- ent.data.prodValueFactor = ent.data.prodValueFactor * 1.15
- ent.data.prodValue = math.Round(ent.data.prodValue * ent.data.prodValueFactor)
- ent:SendToServer()
- end
- },
- [4] = {
- skillName = "Storage specialist I",
- skillCost = 10,
- skillDesc = "Increase storage space by 5%",
- skillFunction = function(printerEntity)
- local ent = printerEntity
- ent.data.storageMaxFactor = ent.data.storageMaxFactor * 1.05
- ent.data.storageMax = math.Round(ent.data.storageMax * ent.data.storageMaxFactor)
- ent:SendToServer()
- end
- },
- [5] = {
- skillName = "Storage specialist II",
- skillCost = 25,
- skillDesc = "Increase storage space by 10%",
- skillFunction = function(printerEntity)
- local ent = printerEntity
- ent.data.storageMaxFactor = ent.data.storageMaxFactor * 1.05
- ent.data.storageMax = math.Round(ent.data.storageMax * ent.data.storageMaxFactor)
- ent:SendToServer()
- end
- },
- [6] = {
- skillName = "Storage specialist III",
- skillCost = 50,
- skillDesc = "Increase storage space by 15%",
- skillFunction = function(printerEntity)
- local ent = printerEntity
- ent.data.storageMaxFactor = ent.data.storageMaxFactor * 1.05
- ent.data.storageMax = math.Round(ent.data.storageMax * ent.data.storageMaxFactor)
- ent:SendToServer()
- end
- },
- [7] = {
- skillName = "Support specialist I",
- skillCost = 10,
- skillDesc = "Increase upgrade space by 1",
- skillFunction = function(printerEntity)
- local ent = printerEntity
- ent.data.upgradesMax = ent.data.upgradesMax + 1
- ent:SendToServer()
- end
- },
- [8] = {
- skillName = "Support specialist II",
- skillCost = 25,
- skillDesc = "Increase upgrade space by 2",
- skillFunction = function(printerEntity)
- local ent = printerEntity
- ent.data.upgradesMax = ent.data.upgradesMax + 2
- ent:SendToServer()
- end
- },
- [9] = {
- skillName = "Support specialist III",
- skillCost = 50,
- skillDesc = "Increase upgrade space by 3",
- skillFunction = function(printerEntity)
- local ent = printerEntity
- ent.data.upgradesMax = ent.data.upgradesMax + 3
- ent:SendToServer()
- end
- },
- [10] = {
- skillName = "Effective cooling",
- skillCost = 25,
- skillDesc = "Increase maximum temperature by 25",
- skillIcon = "icons/skill_other_cooling.png",
- skillIconTaken = "icons/skill_other_cooling_active.png",
- skillShortName = "Cooling",
- skillFunction = function(printerEntity)
- local ent = printerEntity
- ent.data.tempMax = ent.data.tempMax + 25
- ent:SendToServer()
- end
- },
- [99] = {
- skillName = "Co-op printing",
- skillCost = 25,
- skillDesc = "+1% production for each printer in rack.\n\nMaximum +5%.\n\nWorks only for regular rack.",
- skillIcon = "icons/skill_other_coop.png",
- skillShortName = "Co-op",
- skillFunction = function()
- //todo skill function
- //for later
- end
- },
- [11] = {
- skillName = "Passive overclocking",
- skillCost = 25,
- skillDesc = "Increase print speed by 10%",
- skillIcon = "icons/skill_other_overclock.png",
- skillIconTaken = "icons/skill_other_overclock_active.png",
- skillShortName = "Passive OC",
- skillFunction = function(printerEntity)
- local ent = printerEntity
- ent.data.prodTimeFactor = 0.9
- ent.data.prodTime = math.Round(ent.data.prodTime * ent.data.prodTimeFactor)
- ent:SendToServer()
- end
- },
- [12] = {
- skillName = "Storage specialist",
- skillCost = 25,
- skillDesc = "Printer storage gains 10% more space.",
- skillIcon = "icons/skill_other_storage.png",
- skillIconTaken = "icons/skill_other_storage_active.png",
- skillShortName = "Storage +",
- skillFunction = function(printerEntity)
- local ent = printerEntity
- ent.data.storageMaxFactor = ent.data.storageMaxFactor + 0.1
- ent.data.storageMax = math.Round(ent.data.storageMax * ent.data.storageMaxFactor)
- ent:SendToServer()
- end
- },
- [13] = {
- skillName = "Composite armor",
- skillCost = 25,
- skillDesc = "Increase printer health by 100.",
- skillIcon = "icons/skill_other_armor.png",
- skillIconTaken = "icons/skill_other_armor_active.png",
- skillShortName = "Armor +",
- skillFunction = function(printerEntity)
- local ent = printerEntity
- ent.data.health = ent.data.health + 100
- ent:SendToServer()
- end
- },
- }
- if CLIENT then
- surface.CreateFont( "PrintersUpgradeFont", {
- font = "DermaDefault",
- size = 32*6,
- weight = 600,
- antialias = true,
- shadow = true,
- } )
- surface.CreateFont( "PrintersSmallFont1", {
- font = "DermaDefault",
- size = 24*6,
- weight = 600,
- antialias = true,
- shadow = true,
- } )
- surface.CreateFont( "PrintersPrimaryFont", {
- font = "DermaDefault",
- size = 50,
- weight = 1,
- antialias = true,
- shadow = false,
- } )
- surface.CreateFont( "Printersab074f89a37133aed31e9c3acf6ba718b5069b0bd88701a3866ddb42875b9330Font", {
- font = "DermaDefault",
- size = 54,
- weight = 1,
- antialias = true,
- shadow = true,
- } )
- surface.CreateFont( "PrintersSmallFont", {
- font = "DermaDefault",
- size = 50,
- weight = 600,
- antialias = true,
- shadow = false,
- } )
- surface.CreateFont( "PrintersNickFont", {
- font = "DermaDefault",
- size = 64,
- weight = 600,
- antialias = true,
- shadow = true,
- } )
- surface.CreateFont( "PrintersVerySmallFont", {
- font = "DermaDefault",
- size = 38,
- weight = 600,
- antialias = true,
- shadow = true,
- } )
- surface.CreateFont( "PrintersDermaFont", {
- font = "DermaDefault",
- size = 16,
- weight = 600,
- antialias = true,
- shadow = true,
- } )
- surface.CreateFont( "PrintersDermaLargeFont", {
- font = "DermaDefault",
- size = 32,
- weight = 600,
- antialias = true,
- shadow = true,
- } )
- surface.CreateFont( "ph_UpgradeFont", {
- font = "DermaDefault",
- size = 32*6,
- weight = 600,
- antialias = true,
- shadow = true,
- } )
- surface.CreateFont( "ph_SmallFont1", {
- font = "DermaDefault",
- size = 144,
- weight = 600,
- antialias = true,
- shadow = true,
- } )
- surface.CreateFont( "ph_PrimaryFont", {
- font = "Elliot Sans Bold",
- size = 54,
- weight = 1,
- antialias = true,
- shadow = true,
- } )
- surface.CreateFont( "ph_0b57eec0cd97e40a015813f810ca15cbc53614c16ee74d3f49b176c61212a0dd", {
- font = "DermaDefault",
- size = 54,
- weight = 1,
- antialias = true,
- shadow = true,
- } )
- surface.CreateFont( "ph_SmallFont", {
- font = "DermaDefault",
- size = 75,
- weight = 600,
- antialias = true,
- shadow = true,
- } )
- surface.CreateFont( "ph_NickFont", {
- font = "DermaDefault",
- size = 64,
- weight = 600,
- antialias = true,
- shadow = true,
- } )
- surface.CreateFont( "ph_NormalFont", {
- font = "DermaDefault",
- size = 48,
- weight = 600,
- antialias = true,
- shadow = true,
- } )
- surface.CreateFont( "ph_VerySmallFont", {
- font = "DermaDefault",
- size = 38,
- weight = 600,
- antialias = true,
- shadow = true,
- } )
- surface.CreateFont( "ph_ShopFont", {
- font = "DermaDefault",
- size = 16,
- weight = 600,
- antialias = true,
- shadow = true,
- } )
- end
- /*
- timer.Simple(1, function()
- sound.Add( {
- name = "lithium_printer_print",
- channel = CHAN_STATIC,
- volume = 0.2,
- level = lithiumUpgrades.defaultVolume,
- pitch = { 95, 110 },
- sound = "ambient/levels/labs/equipment_printer_loop1.wav"
- } )
- sound.Add( {
- name = "lithium_printer_print_level1",
- channel = CHAN_STATIC,
- volume = 0.2,
- level = lithiumUpgrades.defaultVolume-(lithiumUpgrades.defaultVolume*(lithiumUpgrades.smallSilencer/100)),
- pitch = { 95, 110 },
- sound = "ambient/levels/labs/equipment_printer_loop1.wav"
- } )
- sound.Add( {
- name = "lithium_printer_print_level2",
- channel = CHAN_STATIC,
- volume = 0.2,
- level = lithiumUpgrades.defaultVolume-(lithiumUpgrades.defaultVolume*(lithiumUpgrades.mediumSilencer/100)),
- pitch = { 95, 110 },
- sound = "ambient/levels/labs/equipment_printer_loop1.wav"
- } )
- sound.Add( {
- name = "lithium_printer_print_level3",
- channel = CHAN_STATIC,
- volume = 0.2,
- level = lithiumUpgrades.defaultVolume-(lithiumUpgrades.defaultVolume*(lithiumUpgrades.largeSilencer/100)),
- pitch = { 95, 110 },
- sound = "ambient/levels/labs/equipment_printer_loop1.wav"
- } )
- sound.Add( {
- name = "lithium_printer_beep",
- channel = CHAN_STATIC,
- volume = 0.2,
- level = lithiumUpgrades.defaultVolume,
- pitch = { 95, 110 },
- sound = "buttons/blip1.wav"
- } )
- end)
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement