changed get_noncursed() to helper on BUC struct
This commit is contained in:
parent
4d21bd46d4
commit
fa4612cf1f
2 changed files with 11 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue