pickaxe working as intended

This commit is contained in:
Song Minjae
2017-04-18 01:14:25 +09:00
parent f840dbe7de
commit 5fe604cf45
41 changed files with 271 additions and 231 deletions

View File

@@ -0,0 +1,26 @@
package net.torvald.terrarum.itemproperties
import net.torvald.terrarum.gameactors.roundInt
import net.torvald.terrarum.gameactors.sqrt
/**
* Created by SKYHi14 on 2017-04-17.
*/
object Calculate {
/**
* Pickaxe power per action (swing)
*
* @return arbrtrary unit
*
* See: work_files/Pickaxe Power.xlsx
*
* TODO Newtons as unit?
*/
fun pickaxePower(material: Material): Float {
return 4f * material.forceMod.toFloat().sqrt()
}
fun armorwhatever() { TODO() }
fun yogafire() { TODO() }
}