mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-20 23:44:04 +09:00
pickaxe working as intended
This commit is contained in:
26
src/net/torvald/terrarum/itemproperties/Calculate.kt
Normal file
26
src/net/torvald/terrarum/itemproperties/Calculate.kt
Normal 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() }
|
||||
}
|
||||
Reference in New Issue
Block a user