Skip to content

Commit

Permalink
fix(core): fix IsEquippedShout forgetting OAR parse
Browse files Browse the repository at this point in the history
  • Loading branch information
SARDONYX-sard committed Jan 19, 2024
1 parent 047798c commit 69bd3ae
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions dar2oar_core/src/condition_parser/equip.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::macros::get_try_into;
use super::macros::{gen_cond, get_try_into};
use super::{dar_interface::ParseError, macros::GetArg as _};
use crate::{
conditions::{ConditionSet, IsEquipped, IsEquippedHasKeyword, IsEquippedType},
conditions::{ConditionSet, IsEquipped, IsEquippedHasKeyword, IsEquippedShout, IsEquippedType},
dar_syntax::syntax::FnArg,
values::{NumericLiteral, TypeValue},
};
Expand Down Expand Up @@ -40,6 +40,16 @@ pub(super) fn parse_equip(
..Default::default()
})
}
_ => unreachable!(),
"IsEquippedShout" => gen_cond!(
IsEquippedShout(shout, negated),
args,
"shout(PluginValue) in IsEquippedShout"
),
_ => {
return Err(ParseError::UnexpectedValue(
"IsEquipped prefix condition unexpected to come in: ".to_string(),
condition_name.to_string(),
))
}
})
}

0 comments on commit 69bd3ae

Please sign in to comment.