查看: 1349|回复: 0

重置游戏数据

[复制链接]

…あたしは天

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

开拓者贵宾

发表于 2014-12-19 15:56:18 | 显示全部楼层 |阅读模式

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

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

×


  1. #----------------------------------------------------------------------------
  2. # ● 重置游戏数据
  3. #----------------------------------------------------------------------------

  4. module Taroxd end

  5. module Taroxd::ClearData
  6.   #------------------------------------------------------------------------
  7.   # ● 导入
  8.   #------------------------------------------------------------------------
  9.   Game_Switches.send     :include, self
  10.   Game_Variables.send    :include, self
  11.   Game_SelfSwitches.send :include, self
  12.   #------------------------------------------------------------------------
  13.   # ● 重置
  14.   #------------------------------------------------------------------------
  15.   def clear
  16.     @data.clear
  17.     on_change
  18.     self
  19.   end
  20.   alias reset clear
  21. end
复制代码

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

在本发帖返回顶部