Skip to content

The mutation modifier return value of mutator is wrong #670

@Alpaca2s

Description

@Alpaca2s


It should be referred to
public float getModifier(EnumBeeModifier modifier, final float currentModifier) {
if (!this.modifiers.containsKey(modifier)) {
return 1.0f;
}
final float mult = this.modifiers.get(modifier)[0];
final float limit = this.modifiers.get(modifier)[1];
if (limit >= 1.0f) {
if (limit <= currentModifier) {
return 1.0f;
}
return Math.min(limit / currentModifier, mult);
} else {
if (limit >= currentModifier) {
return 1.0f;
}
return Math.max(limit / currentModifier, mult);
}
}

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