mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-18 06:24:06 +09:00
26 lines
648 B
Kotlin
26 lines
648 B
Kotlin
package net.torvald.terrarum.itemproperties
|
|
|
|
import net.torvald.terrarum.modulebasegame.gameactors.ActorHumanoid
|
|
import net.torvald.terrarum.sqrt
|
|
|
|
/**
|
|
* Created by minjaesong on 2017-04-17.
|
|
*/
|
|
object Calculate {
|
|
/**
|
|
* Pickaxe power per action (swing)
|
|
*
|
|
* @return arbrtrary unit
|
|
*
|
|
* See: work_files/Pickaxe Power.xlsx
|
|
*
|
|
* TODO Newtons as unit?
|
|
*/
|
|
@JvmStatic fun pickaxePower(actor: ActorHumanoid, material: Material): Float {
|
|
return (4.0 * material.forceMod.toDouble().sqrt() * (actor.avStrength / 1000.0)).toFloat()
|
|
}
|
|
|
|
|
|
fun armorwhatever() { TODO() }
|
|
fun yogafire() { TODO() }
|
|
} |