Loading item from module using Groovy

This commit is contained in:
Song Minjae
2017-04-26 23:53:22 +09:00
parent 36a7983024
commit a9eb1f579e
27 changed files with 291 additions and 67 deletions

View File

@@ -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()
}