diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/matter/IMatterValue.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/matter/IMatterValue.kt index ffe05bf75..ab6fb81d8 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/matter/IMatterValue.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/matter/IMatterValue.kt @@ -28,6 +28,14 @@ interface IMatterValue : Comparable { return MatterValue(matter - other.matter, complexity - other.complexity) } + operator fun times(other: IMatterValue): IMatterValue { + return MatterValue(matter * other.matter, complexity * other.complexity) + } + + operator fun times(other: Int): IMatterValue { + return MatterValue(matter * other, complexity * other) + } + override fun compareTo(other: IMatterValue): Int { val matterComparison = matter.compareTo(other.matter)