Module simple_calc

Module simple_calc 

Source
Expand description

This is a simple calculator that avoids the full complexity of the FE games (lifesteal, abilities, held items, personal weapons, etc.) to focus on the stats as they appear in all FE games, providing basic survival probabilities.

Structs§

CombatStats
The stats needed for one side of combat: damage, hit, brave effect, and crit.
Outcome
The outcome of combat, with associated probability.

Enums§

SpeedDiff
The results of different speed differentials between attacker (A) and defender (B), resulting in different attack patterns.

Functions§

possible_outcomes
Returns a list of all of the possible outcomes of combat with associated probability, using the given game’s rules.