Skip to content

Commit

Permalink
Merge pull request #24 from Eroc/main
Browse files Browse the repository at this point in the history
Rename Personal Shield Generator sprites and refid
  • Loading branch information
UndeadZeratul authored Dec 18, 2023
2 parents 951216d + b5331ce commit f403d3e
Show file tree
Hide file tree
Showing 18 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions LANGUAGE
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ TAG_WYVERN = "'Wyvern' .50 cal. Double-Barrel Rifle
TAG_HACKEDRELOADER = "7.76mm Hacked Reloading Device";
TAG_LADDERLAUNCHER = "Ladder launcher";
TAG_MAGAZINERELOADER = "Magazine reloading device";
TAG_PSG = "Personal Shield Generator";
TAG_PSH = "Personal Shield Generator";
TAG_DEPLOYABLEBARRICADE = "Deployable barricade";
TAG_BOOSTERJETS = "Booster Jets";
TAG_DSD = "Dimensional Storage Device";
Expand Down Expand Up @@ -322,4 +322,4 @@ PICKUP_SUPERSTIM = "Picked up a super stimpack.";
PICKUP_SUPPLYBEACON = "Picked up a supply drop beacon.";
PICKUP_TELEPORTER = "Picked up a portable teleporter.";

SUPERSTIM_HELPTEXT = "\cd<<< \cjSUPER STIMPACK \cd>>>\c-\n\n\nSuper stimpacks give a rapid\nbut short boost to\nhealth regeneration.\n\n\Press altfire to use on someone else.\n\n\cgDO NOT OVERDOSE.";
SUPERSTIM_HELPTEXT = "\cd<<< \cjSUPER STIMPACK \cd>>>\c-\n\n\nSuper stimpacks give a rapid\nbut short boost to\nhealth regeneration.\n\n\Press altfire to use on someone else.\n\n\cgDO NOT OVERDOSE.";
12 changes: 6 additions & 6 deletions zscript/accensus/items/Personal Shield Generator.zs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class HDPersonalShieldGenerator : HDWeapon
override HDWeapon GetSpareWeapon(actor newowner , bool reverse, bool doselect) { return GetSpareWeaponRegular(newowner, reverse, doselect); }
override string, double GetPickupSprite()
{
string main = "PSG"..min(Tiers, (WeaponStatus[PSProp_UpgradePoints]));
string main = "PSH"..min(Tiers, (WeaponStatus[PSProp_UpgradePoints]));
return main..(GetBatteriesLoaded(1) > 0 && Enabled ? "B" : "A").."0", 0.2;
}
override string GetHelpText()
Expand Down Expand Up @@ -609,11 +609,11 @@ class HDPersonalShieldGenerator : HDWeapon
+INVENTORY.INVBAR
+WEAPON.WIMPY_WEAPON
-HDWEAPON.DROPTRANSLATION
Inventory.Icon "PSG0A0";
Inventory.Icon "PSH0A0";
Inventory.PickupSound "weapons/pocket";
Inventory.PickupMessage "You picked up a personal shield generator.";
Tag "$TAG_PSG";
HDWeapon.RefId "psg";
Tag "$TAG_PSH";
HDWeapon.RefId "psh";
Scale 0.35;
HDWeapon.loadoutcodes "
\cuelem - 0/1, Adds elemental resistance to the psg.
Expand All @@ -626,10 +626,10 @@ class HDPersonalShieldGenerator : HDWeapon
States
{
RegisterSprites:
PSG0 A 0; PSG1 A 0; PSG2 A 0; PSG3 A 0; PSG4 A 0; PSG5 A 0; PSG6 A 0; PSG7 A 0;
PSH0 A 0; PSH1 A 0; PSH2 A 0; PSH3 A 0; PSH4 A 0; PSH5 A 0; PSH6 A 0; PSH7 A 0;

Spawn:
PSG0 A 1
PSH0 A 1
{
if (!invoker.owner && invoker.Enabled)
{
Expand Down

0 comments on commit f403d3e

Please sign in to comment.