calculateCost

fun calculateCost(from: Location, to: Location): ULong

2地点間のテレポート料金を計算します。

Return

必要な料金(上限はconfigのmaxCost)

Parameters

from

テレポート元の位置

to

テレポート先の位置


fun calculateCost(distance: Double, isDifferentWorld: Boolean): ULong

距離から料金を算出します(ワールド間移動かどうかは呼び出し元で判断)。

Return

必要な料金(上限はconfigのmaxCost)

Parameters

distance

ブロック単位の距離

isDifferentWorld

異なるワールド間の移動か