Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PD-42 Reflex Sight FAK Upgrade #32

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions zscript/accensus/items/FAK Upgrades/FAK Icarus.zs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ class FAK_GFB_Capacitor : FAK_Upgrade
override void DoDowngrade(HDWeapon wpn, HDPickup pkp) { wpn.WeaponStatus[0] &= ~1; GiveCore(wpn.owner, 0.8); }
}

class FAK_PD42_ReflexSights : FAK_Upgrade
{
override string GetItem() { return "HDPDFour"; }
override string GetDisplayName() { return "Reflex Sights"; }
override int GetCost() { return 0; }
override void DoUpgrade(HDWeapon wpn, HDPickup pkp) { wpn.WeaponStatus[0] |= 8; }
override int HasUpgrade(HDWeapon wpn, HDPickup pkp) { return wpn.WeaponStatus[0] & 8 > 0; }
override void DoDowngrade(HDWeapon wpn, HDPickup pkp) { wpn.WeaponStatus[0] &= ~8; }
}

class FAK_PD42_Slugger : FAK_Upgrade
{
override string GetItem() { return "HDPDFour"; }
Expand Down