changed get_noncursed() to helper on BUC struct

This commit is contained in:
Llywelwyn 2023-10-02 23:02:34 +01:00
parent 4d21bd46d4
commit fa4612cf1f
2 changed files with 11 additions and 2 deletions

View file

@ -243,6 +243,15 @@ pub enum BUC {
Blessed,
}
impl BUC {
pub fn noncursed(&self) -> bool {
match self {
BUC::Cursed => false,
_ => true,
}
}
}
#[derive(Component, Debug, Serialize, Deserialize, Eq, PartialEq, Hash, Clone)]
pub struct Beatitude {
pub buc: BUC,