Skip to content

Commit

Permalink
Added Scrapping and Forging
Browse files Browse the repository at this point in the history
  • Loading branch information
DefbeatCZ committed Jan 7, 2020
1 parent 36bf547 commit 133cff1
Show file tree
Hide file tree
Showing 3 changed files with 185 additions and 11 deletions.
18 changes: 7 additions & 11 deletions media/lua/server/HandlerXP.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,13 @@ function CraftXP_Ropework(recipe, ingredients, result, player)
end

function CraftXP_Burner(recipe, ingredients, result, player)
player:getXp():AddXP(Perks.MetalWelding, 25);
player:getXp():AddXP(Perks.MetalWelding, 45);
end

function CraftXP_Smithing(recipe, ingredients, result, player)
player:getXp():AddXP(Perks.MetalWelding, 15);
end











function CraftXP_Scrapping(recipe, ingredients, result, player)
player:getXp():AddXP(Perks.MetalWelding, 2);
end
178 changes: 178 additions & 0 deletions media/scripts/LTSMetalwork.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
module DLTS {

imports {
Base, camping, farming
}

recipe LTS Forge Metal Sheet {
BlowTorch=7,
keep WeldingMask,
keep Hammer,
ScrapMetal=10,
Result:SheetMetal,
Time:480.0,
Category:LTS-Metal,
Sound:PZ_Fire,
OnGiveXP:CraftXP_Smithing,
}

recipe LTS Forge Small Metal Sheet {
BlowTorch=7,
keep WeldingMask,
keep Hammer,
ScrapMetal=3,
Result:SmallSheetMetal,
Time:480.0,
Category:LTS-Metal,
Sound:PZ_Fire,
OnGiveXP:CraftXP_Smithing,
}

recipe LTS Forge Metal Bar {
BlowTorch=7,
keep WeldingMask,
keep Hammer,
ScrapMetal=3,
Result:MetalBar,
Time:480.0,
Category:LTS-Metal,
Sound:PZ_Fire,
OnGiveXP:CraftXP_Smithing,
}

recipe LTS Forge Metal Pipe {
BlowTorch=7,
keep WeldingMask,
keep Hammer,
ScrapMetal=3,
Result:MetalPipe,
Time:480.0,
Category:LTS-Metal,
Sound:PZ_Fire,
OnGiveXP:CraftXP_Smithing,
}

recipe LTS Forge Nails {
BlowTorch=7,
keep WeldingMask,
keep Hammer,
ScrapMetal=4,
Result:NailsBox,
Time:480.0,
Category:LTS-Metal,
Sound:PZ_Fire,
OnGiveXP:CraftXP_Smithing,
}

recipe LTS Forge Wire {
BlowTorch=7,
keep WeldingMask,
keep Hammer,
ScrapMetal=3,
Result:Wire,
Time:480.0,
Category:LTS-Metal,
Sound:PZ_Fire,
OnGiveXP:CraftXP_Smithing,
}

recipe LTS Forge Barbed Wire {
BlowTorch=7,
keep WeldingMask,
keep Hammer,
Wire=5,
ScrapMetal=3,
Result:BarbedWire,
Time:480.0,
Category:LTS-Metal,
Sound:PZ_Fire,
OnGiveXP:CraftXP_Smithing,
}

/** ------------------------------------------------------------------------- **/
/** Smithing: Scrapping Saw (used in all scrap recipes) **/

item LTSScrappingSaw {
Type=Normal,
Weight=0.8,
DisplayName=Metal Scrapping Saw,
Icon=HackSaw2,
StaticModel=Hacksaw,
}

recipe LTS Make Scrapping Saw {
BlowTorch=5,
keep WeldingMask,
Saw,
ScrapMetal=3,
LTSSharpeningStone=3,
Water=3,
Result:LTSScrappingSaw,
Time:480.0,
Category:LTS-Metal,
Sound:PZ_Fire,
OnGiveXP:CraftXP_Smithing,
}

/** ------------------------------------------------------------------------- **/
/** Smithing: Scrapping items (that make sense) into Metal Scrap **/

/** Metalworking primary produce should not be scrapable **/
/** Large and Small Metal Sheet | Metal Bar | Metal Pipe | Nails | Wire **/

/** Random Items (1 Scrap) **/
recipe LTS Scrap Metal {
keep LTSScrappingSaw,
Tweezers/Spoon/TentPeg/Scissors/PopEmpty/PaintbucketEmpty/Hinge/Fork/Doorknob/ButterKnife/KitchenKnife/Hairspray/Screwdriver/TinCanEmpty/TinOpener/Umbrella/HuntingKnife/MeatCleaver,
Result:ScrapMetal,
Time:120.0,
OnGiveXP:CraftXP_Scrapping,
Category:LTS-Metal,
Sound:Sawing,
}

/** Random Items (2 Scrap) **/
recipe LTS Scrap Metal {
keep LTSScrappingSaw,
BakingPan/BarbedWire/HandShovel/HandScythe/HandFork/GardenHoe/GardenFork/Golfclub/FishingNet/GridlePan/Kettle/LeadPipe/LeafRake/Machete/Pan/Pot/RoastingPan/Saw/ScrewsBox/TrapCage/Wrench/TirePump/EngineParts/Saucepan,
Result:ScrapMetal=2,
Time:180.0,
OnGiveXP:CraftXP_Scrapping,
Category:LTS-Metal,
Sound:Sawing,
}

/** Random Items (3 Scrap) **/
recipe LTS Scrap Metal {
keep LTSScrappingSaw,
Crowbar/Axe/Hammer/HandAxe/Katana/LugWrench/PipeWrench/Shovel/Shovel2/WoodAxe/Sledgehammer/Sledgehammer2/PickAxe/LTSPropaneTankEmpty/EmptyPetrolCan/LTSWaterCanEmpty,
Result:ScrapMetal=3,
Time:240.0,
OnGiveXP:CraftXP_Scrapping,
Category:LTS-Metal,
Sound:Sawing,
}

/** Random Items (5 Scrap) **/
recipe LTS Scrap Metal {
keep LTSScrappingSaw,
Jack/LTSWoodBurner,
Result:ScrapMetal=5,
Time:360.0,
OnGiveXP:CraftXP_Scrapping,
Category:LTS-Metal,
Sound:Sawing,
}

/** Firearms (4 Scrap) **/
recipe LTS Scrap Metal {
keep LTSScrappingSaw,
AssaultRifle/AssaultRifle2/DoubleBarrelShotgun/HuntingRifle/Pistol/Pistol2/Pistol3/Revolver/Revolver_Long/Revolver_Short/Shotgun/ShotgunSawnoff/VarmintRifle,
Result:ScrapMetal=4,
Time:300.0,
OnGiveXP:CraftXP_Scrapping,
Category:LTS-Metal,
Sound:Sawing,
}

}
Binary file added media/textures/Item_HackSaw2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 133cff1

Please sign in to comment.