QQ截图20160429183314.png (6 KB, 下载次数: 21)
class Game_Actor alias pyjy29042016_feature_objects feature_objects def feature_objects pyjy29042016_feature_objects + [piyan] end def piyan @piyan ||= Piyan.new end end class Piyan def features @features ||= [] end def jiaoyi(code = 0, data_id = 0, value = 0) @features.push(RPG::BaseItem::Feature.new(code, data_id, value)) end end
$game_actors[1].piyan.jiaoyi(41,2)
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |