Make SecondaryEffect a trait
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -6,7 +6,7 @@ use hashbrown::HashSet;
|
||||
use crate::dynamic_data::choices::{MoveChoice, TurnChoice};
|
||||
use crate::dynamic_data::Pokemon;
|
||||
use crate::dynamic_data::{LearnedMove, MoveLearnMethod};
|
||||
use crate::static_data::{MoveCategory, MoveData, MoveTarget, SecondaryEffect};
|
||||
use crate::static_data::{MoveCategory, MoveData, MoveTarget, SecondaryEffectImpl};
|
||||
use crate::{StringKey, ValueIdentifiable, ValueIdentifier};
|
||||
|
||||
/// The misc library holds several misc functions required for the battle to run.
|
||||
@@ -40,7 +40,11 @@ impl Gen7MiscLibrary {
|
||||
255,
|
||||
MoveTarget::Any,
|
||||
0,
|
||||
Some(SecondaryEffect::new(-1.0, StringKey::new("struggle"), vec![])),
|
||||
Some(Box::new(SecondaryEffectImpl::new(
|
||||
-1.0,
|
||||
StringKey::new("struggle"),
|
||||
vec![],
|
||||
))),
|
||||
HashSet::new(),
|
||||
));
|
||||
let struggle_learned_move = Arc::new(LearnedMove::new(&struggle_data, MoveLearnMethod::Unknown));
|
||||
|
||||
Reference in New Issue
Block a user