Adds ability to get the current time of day
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:
@@ -20,7 +20,7 @@ use pkmn_lib::static_data::{
|
||||
GrowthRateLibrary, GrowthRateLibraryImpl, ItemImpl, ItemLibrary, ItemLibraryImpl, LearnableMoves,
|
||||
LearnableMovesImpl, LibrarySettingsImpl, LookupGrowthRate, MoveDataImpl, MoveLibrary, MoveLibraryImpl, NatureImpl,
|
||||
NatureLibrary, NatureLibraryImpl, SecondaryEffect, SecondaryEffectImpl, SpeciesImpl, SpeciesLibrary,
|
||||
SpeciesLibraryImpl, StaticDataImpl, StaticStatisticSet, Statistic, TypeLibrary, TypeLibraryImpl,
|
||||
SpeciesLibraryImpl, StaticDataImpl, StaticStatisticSet, Statistic, TimeOfDay, TypeLibrary, TypeLibraryImpl,
|
||||
};
|
||||
use pkmn_lib::StringKey;
|
||||
|
||||
@@ -84,7 +84,7 @@ pub fn load_library() -> LoadResult {
|
||||
Arc::new(data),
|
||||
Arc::new(Gen7BattleStatCalculator::new()),
|
||||
Arc::new(Gen7DamageLibrary::new(false)),
|
||||
Arc::new(Gen7MiscLibrary::new()),
|
||||
Arc::new(Gen7MiscLibrary::new(Box::new(|| TimeOfDay::Day))),
|
||||
script_resolver,
|
||||
));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user