rusty_flagon_lib 1.0.0

A library for character generation for OSE Classic roleplaying game
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::*;

impl Builder {
    pub(crate) fn alignment(&mut self) -> Result<(), FailedTo> {
        self.character.alignment = match self.roller.dx(3) {
            1 => Alignment::Law,
            2 => Alignment::Neutrality,
            3 => Alignment::Chaos,
            _ => Alignment::None,
        };
        Ok(())
    }
}

// #[cfg(test)]
// mod unit_tests { use super::*; }