Skip to content

Commit

Permalink
Add Raw Steel as potential crafting material
Browse files Browse the repository at this point in the history
  • Loading branch information
UndeadZeratul committed Jun 23, 2023
1 parent b9bdb3b commit 8f026c5
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 2 deletions.
2 changes: 2 additions & 0 deletions MENUDEF
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
OptionValue "ProjectileMaterial" {
0, "$URL_NO_MATERIAL"
1, "$TAG_RAWLEAD"
2, "$TAG_RAWSTEEL"
}

OptionValue "CasingMaterial" {
0, "$URL_NO_MATERIAL"
1, "$TAG_RAWBRASS"
2, "$TAG_RAWPLASTIC"
3, "$TAG_RAWSTEEL"
}

OptionValue "PowderMaterial" {
Expand Down
1 change: 1 addition & 0 deletions ZSCRIPT.zsc
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ version "4.10"
#include "zscript/universalreloader/recipes/materials/rawLead.zsc"
#include "zscript/universalreloader/recipes/materials/rawPlastic.zsc"
#include "zscript/universalreloader/recipes/materials/rawPowder.zsc"
#include "zscript/universalreloader/recipes/materials/rawSteel.zsc"
Binary file added sprites/materials/STMTA0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions zscript/universalreloader/recipes/materials/rawSteel.zsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
class HDRel_RawSteel : HDRel_CasingMaterial
{
Default
{
Tag "Steel Materials";
Inventory.Icon "STMTA0";
Inventory.PickupMessage "Picked up some steel materials.";
HDRel_CraftingMaterial.PileMessage "Picked up a ball of steel.";
HDRel_CraftingMaterial.PileType PType_Ball;
HDPickup.Bulk 0.28;
}

States
{
Spawn:
STMT A -1;
Stop;
}
}
4 changes: 2 additions & 2 deletions zscript/universalreloader/spawnHandler.zsc
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ class URLSpawnHandler : EventHandler {
// Crafting Recipes
//---------------------

string projectileMats[2] = { "", "HDRel_RawLead" };
string casingMats[3] = { "", "HDRel_RawBrass", "HDRel_RawPlastic" };
string projectileMats[3] = { "", "HDRel_RawLead", "HDRel_RawSteel" };
string casingMats[4] = { "", "HDRel_RawBrass", "HDRel_RawPlastic", "HDRel_RawSteel" };
string powderMats[2] = { "", "HDRel_RawPowder" };

// Crafting Result; Projectile mat, cost, produced;
Expand Down

0 comments on commit 8f026c5

Please sign in to comment.