查看: 1492|回复: 0

禁用贵重物品功能

[复制链接]

…あたしは天

梦石
0
星屑
2308
在线时间
4033 小时
注册时间
2010-10-4
回帖
10548

开拓者贵宾

发表于 2014-7-14 21:57:54 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
[pre lang="ruby" line="1"]
#--------------------------------------------------------------------------
# ● 禁用“贵重物品”功能 require Taroxd基础设置
#--------------------------------------------------------------------------

class RPG::Item < RPG::UsableItem
  #--------------------------------------------------------------------------
  # ● 取消贵重物品属性
  #--------------------------------------------------------------------------
  def key_item?; false; end
end
  
class Window_ItemCategory < Window_HorzCommand
  #--------------------------------------------------------------------------
  # ● 获取列数
  #--------------------------------------------------------------------------
  def col_max; 3; end
  #--------------------------------------------------------------------------
  # ● 生成指令列表
  #--------------------------------------------------------------------------
  def make_command_list
    add_command(Vocab::item,   :item)
    add_command(Vocab::weapon, :weapon)
    add_command(Vocab::armor,  :armor)
  end
end

class Window_KeyItem < Window_ItemList
  #--------------------------------------------------------------------------
  # ● 种类设定为物品
  #--------------------------------------------------------------------------
  def_after(:start) { self.category = :item }
  #--------------------------------------------------------------------------
  # ● 所有道具均可选择
  #--------------------------------------------------------------------------
  def enable?(item); true; end
end
[/pre]

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本发帖返回顶部