rocalc 0.1.0

一款用于计算洛克王国:世界精灵对决的Rust库
Documentation
1
2
3
4
5
6
7
8
use crate::structs::Sfor;

/// 简易公式计算伤害
pub fn simple_dmg(s_para: Sfor) -> f32 {
    let Sfor {atk, dfe, pow} = s_para;
    let dmg = atk / dfe * 0.9 * pow;
    return dmg;
}