Skip to content

Tariff not being set correctly when dt_commission = true, dt_granular = true and maximum reputation #1

@synogen

Description

@synogen

When I trade with a faction that I have a commission with the tariff change works fine until I get to maximum reputation with that faction.
I checked through the code and I suspect line 104 in TariffUtil.java:

tariff = tariff < 0f ? -0.3f : tariff;

I think tariff should be set to 0f instead of -0.3f when it is less than 0 at that step so it will correctly set tariffs to 0 in the following steps.

I debugged it locally and it seems to work fine after the change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions