class Game_Interpreter
def command_物品定价(id, percent)
$data_items[id].quotation_percent = percent
end
def command_武器定价(id, percent)
$data_weapons[id].quotation_percent = percent
end
def command_防具定价(id, percent)
$data_armors[id].quotation_percent = percent
end
end
module RPG
class Item
attr_accessor :quotation_percent
def price
@quotation_percent = 100 if @quotation_percent.nil?
return @price * @quotation_percent / 100
end
end
class Weapon
attr_accessor :quotation_percent
def price
@quotation_percent = 100 if @quotation_percent.nil?
return @price * @quotation_percent / 100
end
end
class Armor
attr_accessor :quotation_percent
def price
@quotation_percent = 100 if @quotation_percent.nil?
return @price * @quotation_percent / 100
end
end
end