Module armor

Module armor 

Source
Expand description

§Armor

Use stats::Builder to get some basic premade armor stats

use rpg_stat::armor::Basic as Armor;
use rpg_stat::stats::Basic as Stats;
use rpg_stat::stats::Builder;
let armor = Armor::Good;
let stats:Stats<f64> = armor.build_basic(0.0, 1.0);
assert_eq!(stats.hp, 5.0);

These enums can be combined with other modules, such as Element to create an elemental armor

Enums§

Advanced
Armor
Basic
Normal