Crates.io | farm-analyze-lo |
lib.rs | farm-analyze-lo |
version | 1.0.2 |
source | src |
created_at | 2023-08-11 01:54:13.103878 |
updated_at | 2023-08-11 22:59:28.200796 |
description | A lib to calc for efficient with farming of power lvling. |
homepage | |
repository | |
max_upload_size | |
id | 941523 |
size | 16,386 |
The calc library for efficient about exp and resource at the game called LastOrigin.
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.
// 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);
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.
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.
MIT