Skip to content

Commit

Permalink
Localize a bunch of Item Tags, Pickup Messages, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
UndeadZeratul committed Jun 23, 2023
1 parent 7b3e827 commit 1e6f59e
Show file tree
Hide file tree
Showing 10 changed files with 56 additions and 39 deletions.
53 changes: 35 additions & 18 deletions LANGUAGE.en
Original file line number Diff line number Diff line change
@@ -1,26 +1,43 @@
[enu default]

// Options Menu Labels
URL_MENU = "Universal Reloader Options";
URL_MENU = "Universal Reloader Options";

URL_ENABLED = "Enabled";
URL_DISABLED = "Disabled";
URL_ENABLED = "Enabled";
URL_DISABLED = "Disabled";

URL_PROJECTILE = "Projectile";
URL_CASING = "Casing";
URL_POWDER = "Powder";
URL_PROJECTILE = "Projectile";
URL_CASING = "Casing";
URL_POWDER = "Powder";

URL_CRAFTING_MATERIAL = "Crafting Material";
URL_MATERIAL_COST = "Material Cost";
URL_DISASSEMBLE_RATIO = "Percent Returned when Disassembling";
URL_CRAFTING_MATERIAL = "Crafting Material";
URL_MATERIAL_COST = "Material Cost";
URL_DISASSEMBLE_RATIO = "Percent Returned when Disassembling";

URL_RESET = "Reset options";
URL_RESET_ALL = "Reset all options";
URL_RESET = "Reset options";
URL_RESET_ALL = "Reset all options";

// Crafting Materials
URL_NO_MATERIAL = "No Material";
TAG_RAWBRASS = "Raw Brass";
TAG_RAWLEAD = "Raw Lead";
TAG_RAWPLASTIC = "Raw Plastic";
TAG_RAWPOWDER = "Raw Powder";
TAG_RAW_STEEL = "Raw Steel";
URL_NO_MATERIAL = "No Material";

// Item Tags
TAG_RAWBRASS = "Brass";
TAG_RAWLEAD = "Lead";
TAG_RAWPLASTIC = "Plastic";
TAG_RAWPOWDER = "Powder";
TAG_RAWSTEEL = "Steel";
TAG_UNIVERSAL_RELOADER = "Universal Reloading Device";
TAG_GUNSMITH_POUCH = "Gunsmith's Pouch";

// Pickup Messages
PICKUP_RAWBRASS = "Picked up some brass materials.";
PICKUP_RAWLEAD = "Picked up some lead materials.";
PICKUP_RAWPLASTIC = "Picked up some plastic materials.";
PICKUP_RAWPOWDER = "Picked up some powder.";
PICKUP_RAWSTEEL = "Picked up some steel materials.";
PICKUP_PILE_RAWBRASS = "Picked up a ball of brass.";
PICKUP_PILE_RAWLEAD = "Picked up a ball of lead.";
PICKUP_PILE_RAWPLASTIC = "Picked up a pile of plastic.";
PICKUP_PILE_RAWPOWDER = "Picked up a pile of powder.";
PICKUP_PILE_RAWSTEEL = "Picked up a ball of steel.";
PICKUP_UNIVERSAL_RELOADER = "Picked up a universal reloading device.";
PICKUP_GUNSMITH_POUCH = "Picked up a gunsmith's pouch, for all your gunpowder!";
4 changes: 2 additions & 2 deletions zscript/gunsmithpouch/gunsmithpouch.zsc
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ const HDLD_GSPouch = "gsp";
//==================================================
class GunsmithPouch : HDBackpack {
default {
tag "Gunsmith's Pouch";
tag "$TAG_GUNSMITH_POUCH";
HDBackpack.MaxCapacity 200;
Inventory.Icon "GSPPA0";
Inventory.PickupMessage "Picked up a gunsmith's pouch, for all your gunpowder!";
Inventory.PickupMessage "$PICKUP_GUNSMITH_POUCH";
scale 0.6;
hdweapon.wornlayer 0;
hdweapon.refid HDLD_GSPouch;
Expand Down
2 changes: 1 addition & 1 deletion zscript/gunsmithpouch/gunsmithpouch_hud.zsc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ extend class GunsmithPouch {
{
int BaseOffset = -80;

sb.DrawString(sb.pSmallFont, "\c[DarkBrown][] [] [] \c[DarkGreen]Gunsmith Pouch\c[DarkBrown] [] [] []", (0, BaseOffset), sb.DI_SCREEN_CENTER | sb.DI_TEXT_ALIGN_CENTER);
sb.DrawString(sb.pSmallFont, "\c[DarkBrown][] [] [] \c[DarkGreen]"..StringTable.localize("$TAG_GUNSMITH_POUCH").."\c[DarkBrown] [] [] []", (0, BaseOffset), sb.DI_SCREEN_CENTER | sb.DI_TEXT_ALIGN_CENTER);
string BulkString = "Total Bulk: \cf"..int(Storage.TotalBulk).."\c-";
if (weaponstatus[GSP_AMOUNT] > 1) { BulkString = BulkString.." --- Pouches: \cf"..weaponstatus[GSP_AMOUNT].."\c-"; }
sb.DrawString(sb.pSmallFont, BulkString, (0, BaseOffset + 10), sb.DI_SCREEN_CENTER | sb.DI_TEXT_ALIGN_CENTER);
Expand Down
4 changes: 2 additions & 2 deletions zscript/universalreloader/items/universalReloader.zsc
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,10 @@ class HDUniversalReloader : HDWeapon
+HDWEAPON.FITSINBACKPACK
+HDWEAPON.DONTFISTONDROP
Inventory.PickupSound "misc/w_pkup";
Inventory.PickupMessage "Picked up a universal reloading device.";
Inventory.PickupMessage "$PICKUP_UNIVERSAL_RELOADER";
Scale 0.6;
HDWeapon.RefId "url";
Tag "Universal reloading device";
Tag "$TAG_UNIVERSAL_RELOADER";
}

void addRecipes(Array<HDRel_Recipe> newRecipes) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class HDRel_CraftingMaterial : HDAmmo abstract

override string PickupMessage()
{
return Amount > 1 ? PileMessage : default.PickupMsg;
return StringTable.localize(Amount > 1 ? PileMessage : default.PickupMsg);
}

override void SplitPickup()
Expand Down
6 changes: 3 additions & 3 deletions zscript/universalreloader/recipes/materials/rawBrass.zsc
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ class HDRel_RawBrass : HDRel_CraftingMaterial
{
Default
{
Tag "Brass";
Tag "$TAG_RAWBRASS";
Inventory.Icon "BRMTA0";
Inventory.PickupMessage "Picked up some brass materials.";
HDRel_CraftingMaterial.PileMessage "Picked up a ball of brass.";
Inventory.PickupMessage "$PICKUP_RAWBRASS";
HDRel_CraftingMaterial.PileMessage "$PICKUP_PILE_RAWBRASS";
HDRel_CraftingMaterial.PileType PType_Ball;
HDPickup.Bulk 0.20;
}
Expand Down
6 changes: 3 additions & 3 deletions zscript/universalreloader/recipes/materials/rawLead.zsc
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ class HDRel_RawLead : HDRel_CraftingMaterial
{
Default
{
Tag "Lead";
Tag "$TAG_RAWLEAD";
Inventory.Icon "LEADA0";
Inventory.PickupMessage "Picked up some lead materials.";
HDRel_CraftingMaterial.PileMessage "Picked up a ball of lead.";
Inventory.PickupMessage "$PICKUP_RAWLEAD";
HDRel_CraftingMaterial.PileMessage "$PICKUP_PILE_RAWLEAD";
HDRel_CraftingMaterial.PileType PType_Ball;
HDPickup.Bulk 0.25;
Scale 0.8;
Expand Down
6 changes: 3 additions & 3 deletions zscript/universalreloader/recipes/materials/rawPlastic.zsc
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ class HDRel_RawPlastic : HDRel_CraftingMaterial
{
Default
{
Tag "Plastic";
Tag "$TAG_RAWPLASTIC";
Inventory.Icon "PLTCA0";
Inventory.PickupMessage "Picked up some plastic materials.";
HDRel_CraftingMaterial.PileMessage "Picked up a pile of plastic.";
Inventory.PickupMessage "$PICKUP_RAWPLASTIC";
HDRel_CraftingMaterial.PileMessage "$PICKUP_PILE_RAWPLASTIC";
HDRel_CraftingMaterial.PileType PType_None;
HDPickup.Bulk 0.11;
Scale 0.4;
Expand Down
6 changes: 3 additions & 3 deletions zscript/universalreloader/recipes/materials/rawPowder.zsc
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ class HDRel_RawPowder : HDRel_CraftingMaterial
{
Default
{
Tag "Powder";
Tag "$TAG_RAWPOWDER";
Inventory.Icon "PWDRA0";
Inventory.PickupMessage "Picked up some powder.";
HDRel_CraftingMaterial.PileMessage "Picked up a pile of powder.";
Inventory.PickupMessage "$PICKUP_RAWPOWDER";
HDRel_CraftingMaterial.PileMessage "$PICKUP_PILE_RAWPOWDER";
HDRel_CraftingMaterial.PileType PType_Pile;
HDPickup.Bulk 0.08;
}
Expand Down
6 changes: 3 additions & 3 deletions zscript/universalreloader/recipes/materials/rawSteel.zsc
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ class HDRel_RawSteel : HDRel_CraftingMaterial
{
Default
{
Tag "Steel";
Tag "$TAG_RAWSTEEL";
Inventory.Icon "STMTA0";
Inventory.PickupMessage "Picked up some steel materials.";
HDRel_CraftingMaterial.PileMessage "Picked up a ball of steel.";
Inventory.PickupMessage "$PICKUP_RAWSTEEL";
HDRel_CraftingMaterial.PileMessage "$PICKUP_PILE_RAWSTEEL";
HDRel_CraftingMaterial.PileType PType_Ball;
HDPickup.Bulk 0.28;
}
Expand Down

0 comments on commit 1e6f59e

Please sign in to comment.