Adds ability to get the current time of day
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-07-22 13:22:47 +02:00
parent c75541720b
commit 0c6a0cadfe
10 changed files with 132 additions and 25 deletions

View File

@@ -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,
));

Binary file not shown.