3 stable releases
1.0.2 | Aug 11, 2023 |
---|
#3 in #exp
16KB
380 lines
farm-analyze-lo
The calc library for efficient about exp and resource at the game called LastOrigin.
Important
The repository has the possibility that this will be deleted. Because this is fan made and I'll delete this if probrems occurred with the official group of LastOrigin. Add, this library is only for jp. This may not use with KR ver.
Examples
// First, decide number of unit menber.
let count = HeadCount::new(5);
// Make input(exp)/output(resource) detail of unit.
let unit_io = UnitIOMaker::new(count)
.add(accompanyings::EMILY_2)
.fill(Chicks::Cover(dec!(50)));
// Decide a times.
let laptime = Duration::minutes(1);
let total_time = Duration::hours(1);
// It needs stage's detail, too.
let stage = Stage::new(laptime, total_time, dec!(10000));
// That's the end.
let detail = simulate(unit_io, stage);
What this do
The library works well to analyze about exp per resouces at the farming. For example, about OS called Learning system on Emily's 5-8Ex or Mighty-R's 7-7. However, the clac result has an error by some factors like rounding off. You can use the result as rough guess.
Dependencies
In API, this use chrono
crate to handle time in sligntly larger units than std::time::Duration
.
You can pass times to the library at hours or minutes by it.
Add, this use rust_decimal
crate to handle float value with smaller errors than default f64.
References
- The formula about exp with some buffs from combatant's skill and gear them.
- The resources and values of buffs.
License
MIT
Dependencies
~1.8–2.6MB
~50K SLoC