Ticket #48097

adv_want dai_unit_defense_desirability()

Date d'ouverture: 2023-05-28 17:37 Dernière mise à jour: 2023-06-02 10:36

Rapporteur:
Propriétaire:
Type:
État:
Atteints
Composant:
Priorité:
5 - moyen
Sévérité:
5 - moyen
Résolution:
Fixed
Fichier:
2

Détails

dai_unit_defense_desirability() currently returns 'int', though the return value is used as an 'adv_want' and the math within the function would benefit from non-integer accuracy. Make it to return adv_want.

Ticket History (3/5 Histories)

2023-05-28 17:37 Updated by: cazfi
  • New Ticket "adv_want dai_unit_defense_desirability()" created
2023-05-28 17:54 Updated by: cazfi
  • Propriétaire Update from (Aucun) to cazfi
  • Résolution Update from Aucun to Accepted
Commentaire

Reply To cazfi

dai_unit_defense_desirability() currently returns 'int', though the return value is used as an 'adv_want' and the math within the function would benefit from non-integer accuracy. Make it to return adv_want.

dai_unit_attack_desirability() was actually even more in need of this change, as it does much more division operations.

2023-06-02 10:36 Updated by: cazfi
  • État Update from Ouvert to Atteints
  • Résolution Update from Accepted to Fixed

Modifier

Please login to add comment to this ticket » Connexion