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

Determine New Logic for NaturalWeapon Commerce #89

Open
egocarib opened this issue Jun 24, 2024 · 0 comments
Open

Determine New Logic for NaturalWeapon Commerce #89

egocarib opened this issue Jun 24, 2024 · 0 comments

Comments

@egocarib
Copy link
Member

Previously, QBE suppressed the commerce property from being returned for natural weapons (and possibly other things). However, it appears that NaturalWeapon now has Physics.takeable = 'true', which throws a wrench in that old logic, and causes all natural weapons to have commerce info populated on the wiki. Likely, this is not desirable, but we will need to figure out what new logic to use if we want to suppress this info again.

if self.part_Physics_Takeable is not None and self.part_Physics_Takeable == 'false':
if value == 0.01:
# ignore for non-takeable objects that inherit 0.01 from PhysicalObject
return None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant