diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2016-06-20 15:33:39 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2016-06-20 15:33:39 -0400 |
| commit | e879c365577b0cc51c48bace7cd5fb52cdc26eaa (patch) | |
| tree | 822a52cf38efd6815f2b7483cf6369e68c3dab23 /gamemode/structuresystem/structures/platinumfurnace.lua | |
| parent | f797cbe348dd52b51da4cd4812cfa291d1434095 (diff) | |
| download | gmstranded-e879c365577b0cc51c48bace7cd5fb52cdc26eaa.tar.gz gmstranded-e879c365577b0cc51c48bace7cd5fb52cdc26eaa.tar.bz2 gmstranded-e879c365577b0cc51c48bace7cd5fb52cdc26eaa.zip | |
Diffstat (limited to 'gamemode/structuresystem/structures/platinumfurnace.lua')
| -rw-r--r-- | gamemode/structuresystem/structures/platinumfurnace.lua | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/gamemode/structuresystem/structures/platinumfurnace.lua b/gamemode/structuresystem/structures/platinumfurnace.lua new file mode 100644 index 0000000..44f8e06 --- /dev/null +++ b/gamemode/structuresystem/structures/platinumfurnace.lua @@ -0,0 +1,48 @@ +local STRUCT = {} + +STRUCT.Name = "Platinum Furnace" +STRUCT.Model = "models/xeon133/slider/slider_stand_12x12x24.mdl" + +STRUCT.onInitialize = function(self) + --print("Initalize called!") +end + +STRUCT.uniquedata = false + +STRUCT.onUse = function(self, ply) + if CLIENT and ply != LocalPlayer() then return end + --print("onUse called!") +end + +STRUCT.timemult = 0.5 +STRUCT.skillease = 0.25 + +local timefunc = function(ply, num) + local time = math.pow(num,STRUCT.timemult)*4 - math.pow(ply:GetSkill("Smelting"),STRUCT.skillease) + return time +end +local checkfunc = function(ply) + return true +end + +local genericRecipe = { + ["Name"] = "Pure Mithril", + ["Description"] = "Smelt some mithril ore into pure mithril!", + ["Requirements"] = {["Mithril Ore"] = 2}, + ["Results"] = {["Pure Mithril"] = 1}, + ["Ratio"] = {1,1}, + ["Image"] = "items/ingot_puremithril.png", + ["CanCraft"] = checkfunc, + ["Time"] = timefunc, + ["Mults"] = {1,5,10,25}, + ["Skill"] = "Smelting", + ["SmeltAll"] = true, + ["MaxAmount"] = 50, +} + +genericGiveRecipie(STRUCT,genericRecipe) + + +genericMakeCrafting(STRUCT) + +registerStructure(STRUCT) |
