mkxp/scripts/Data_Item.rb

15 lines
413 B
Ruby
Raw Normal View History

2015-11-17 20:35:51 +00:00
module Item
COMBINATIONS = {
2015-11-27 07:19:31 +00:00
[3, 4] => 5, # alcohol + dry branch => wet branch
[25, 26] => 30, # feather + ink bottle => pen
[32, 36] => 33, # button + magnets => magnetized button
[37, 38] => 32, # tin + scissors => button
[36, 37] => 100, # tin + magnets => can't combine
2015-11-17 20:35:51 +00:00
}
def self.combine(item_a, item_b)
items = [item_a, item_b].minmax
return COMBINATIONS[items]
end
end