赞 | 32 |
VIP | 44 |
好人卡 | 11 |
积分 | 17 |
经验 | 81722 |
最后登录 | 2020-3-23 |
在线时间 | 1357 小时 |
Lv3.寻梦者 唯一的信徒
- 梦石
- 0
- 星屑
- 1665
- 在线时间
- 1357 小时
- 注册时间
- 2013-1-29
- 帖子
- 1637
|
本帖最后由 LBQ 于 2017-1-31 21:27 编辑
没有怎么实测
- #encoding:utf-8
- #==============================================================================
- # ■ 不会被攻击状态 以及 全员中 GameOver 状态 【石化】 by LBQ
- #------------------------------------------------------------------------------
- # 对应状态备注为 <石化> 或者 <Petrified>
- #==============================================================================
- =begin
- This is free and unencumbered software released into the public domain.
- Anyone is free to copy, modify, publish, use, compile, sell, or
- distribute this software, either in source code form or as a compiled
- binary, for any purpose, commercial or non-commercial, and by any
- means.
- In jurisdictions that recognize copyright laws, the author or authors
- of this software dedicate any and all copyright interest in the
- software to the public domain. We make this dedication for the benefit
- of the public at large and to the detriment of our heirs and
- successors. We intend this dedication to be an overt act of
- relinquishment in perpetuity of all present and future rights to this
- software under copyright law.
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
- OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
- ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- OTHER DEALINGS IN THE SOFTWARE.
- For more information, please refer to <http://unlicense.org/>
- =end
- class Game_Battler
- def reified_states
- return @states.map{|it| $data_states[it]}
- end
-
- def state_petrified?
- reified_states.find{|it|
- it.note.include?("<石化>") || it.note.include?("<Petrified>")
- }
- end
- end
- class Game_Party
- # Overwrite
- alias lbq_petrify_alive_members alive_members
- def alive_members
- lbq_petrify_alive_members.select {|it| ! it.state_petrified?}
- end
- end
复制代码
应该只写了 1. 不能被攻击, 2. 全员中会 GameOver,剩下的功能默认应该有 |
评分
-
查看全部评分
|