Started by bigace, January 08, 2013, 08:44:10 am
module Warrior_Engine module CORE # This hash allows you to adjust the individual item price. This allows you # to go past the original editor limit of 999,999 gold for a single item. CUSTOM_PRICES ={ :item => {1 => 9999999999, 30 => 123456789999}, :weapon => {}, :armor => {}, } endendmodule RPG class Item include Warrior_Engine::CORE custom_prices = CUSTOM_PRICES[:item][@id] @price = custom_prices.nil? ? 0 : custom_prices end class Weapon include Warrior_Engine::CORE custom_prices = CUSTOM_PRICES[:weapon][@id] @price = custom_prices.nil? ? 0 : custom_prices end class Armor include Warrior_Engine::CORE custom_prices = CUSTOM_PRICES[:armor][@id] @price = custom_prices.nil? ? 0 : custom_prices endend
module Warrior_Engine module CORE # This hash allows you to adjust the individual item price. This allows you # to go past the original editor limit of 999,999 gold for a single item. CUSTOM_PRICES ={ :item => {1 => 9999999999, 30 => 123456789999}, :weapon => {}, :armor => {}, } endendmodule RPG class Item include Warrior_Engine::CORE alias ace_price price def price custom_prices = CUSTOM_PRICES[:item][@id] return (custom_prices.nil? ? ace_price : custom_prices) end end class Weapon include Warrior_Engine::CORE alias ace_price price def price custom_prices = CUSTOM_PRICES[:weapon][@id] return (custom_prices.nil? ? ace_price : custom_prices) end end class Armor include Warrior_Engine::CORE alias ace_price price def price custom_prices = CUSTOM_PRICES[:armor][@id] return (custom_prices.nil? ? ace_price : custom_prices) end endend