Skip to content

Floor and int type casting is not needed. #21

@TodorBalabanov

Description

@TodorBalabanov

com.gpl.rpg.AndorsTrail.model.actor.Actor;

public int getAttacksPerTurn() { return (int) Math.floor(getMaxAP() / getAttackCost()); }

public int getAttacksPerTurn() { return getMaxAP() / getAttackCost(); }

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