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

This commit is contained in:
Deukhoofd committed 2023-07-22 13:22:47 +02:00
1 parent c75541720b
commit 0c6a0cadfe
10 files changed
+132 -25

No files matched your search

+2 -2
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,
));