You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.1 KiB
Rust

2 years ago
use kartsimrust::{
character::create_character,
class::Class,
combat::EncounterType,
equipment::{Armor, WeaponType},
stats::StatBlock,
};
fn main() {
let mut bob = create_character(
String::from("Bob"),
Class::Hunter,
Class::Knight,
StatBlock::from((1, 0, 1, 0, 0, 0, 0, 0)),
StatBlock::from((2, 0, 2, 0, -1, -2, 0, -1)),
Armor::Medium,
WeaponType::BladedWeapon.create_weapon("Longsword".to_owned()),
);
let mut glob = create_character(
String::from("Glob"),
Class::Guard,
Class::Brawler,
StatBlock::from((1, 0, 1, 0, 0, 0, 0, 0)),
StatBlock::from((2, 0, 2, 0, -1, -2, 0, -1)),
Armor::Medium,
WeaponType::BladedWeapon.create_weapon("Longsword".to_owned()),
);
bob.init_dice_pool(EncounterType::Physical);
glob.init_dice_pool(EncounterType::Physical);
println!("{}", bob);
println!("{}", glob);
bob.attacks(&mut glob);
println!("{}", bob);
println!("{}", glob);
}