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

Apply weapon customization when equipping unmodified weapons #1285

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

Iridar
Copy link
Contributor

@Iridar Iridar commented Oct 29, 2023

Fixes #609

This PR does fix the outlined issue, but I need more tests to determine it doesn't go overboard. For example, when working with non-infinite weapons that have weapon upgrades applied to them, but no upgrade slots, e.g. TLP weapons or Chosen XCOM weapons.

@Iridar Iridar added this to the 1.27.0 milestone Oct 29, 2023
@Iridar Iridar self-assigned this Oct 29, 2023
@Iridar Iridar added the ready-for-merge the pull request was reviewed and is ready to be merged. label Oct 29, 2023
@Iridar
Copy link
Contributor Author

Iridar commented Oct 29, 2023

I think this is fine, but I'll let it stew for a bit in case @robojumper decides to give it a look.

@Iridar Iridar modified the milestones: 1.27.0, 1.28.0 Oct 29, 2023
@Iridar
Copy link
Contributor Author

Iridar commented Feb 27, 2024

One thing that has me slightly concerned is using weapon pattern for weapons that are supposed to armor appearance. Like, wouldn't it make sense to use armor pattern for them? But this is what existing code does, so I'll cargo cult this for now. This can be changed later if need be.

@Iridar Iridar merged commit af0b75f into X2CommunityCore:master Feb 27, 2024
4 checks passed
@Iridar Iridar deleted the 609-equip-old-items branch February 27, 2024 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-basegame ready-for-merge the pull request was reviewed and is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

XCGS_Unit:EquipOldItems does not apply color and pattern to unmodified items
2 participants