Skip to content

Determine New Logic for NaturalWeapon Commerce #89

Description

@egocarib

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions