mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-20 23:44:04 +09:00
Loading item from module using Groovy
This commit is contained in:
@@ -15,7 +15,7 @@ object Calculate {
|
||||
*
|
||||
* TODO Newtons as unit?
|
||||
*/
|
||||
fun pickaxePower(actor: ActorHumanoid, material: Material): Float {
|
||||
@JvmStatic fun pickaxePower(actor: ActorHumanoid, material: Material): Float {
|
||||
return (4.0 * material.forceMod.toDouble().sqrt() * (actor.avStrength / 1000.0)).toFloat()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user