mkxp/scripts/Item.rb

12 lines
185 B
Ruby

module Item
COMBINATIONS = {
[3, 4] => 5,
[25, 26] => 30,
}
def self.combine(item_a, item_b)
items = [item_a, item_b].minmax
return COMBINATIONS[items]
end
end