赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 2 |
经验 | 0 |
最后登录 | 2021-1-5 |
在线时间 | 31 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 216
- 在线时间
- 31 小时
- 注册时间
- 2019-3-16
- 帖子
- 20
|
两种
一种改变只靠开关和事件,不受状态装备啥的影响
一种只受状态影响……从下面这个动手?
Object.defineProperties(Game_BattlerBase.prototype, {
// Hit Points
hp: { get: function() { return this._hp; }, configurable: true },
// Magic Points
mp: { get: function() { return this._mp; }, configurable: true },
// Tactical Points
tp: { get: function() { return this._tp; }, configurable: true },
// Maximum Hit Points
mhp: { get: function() { return this.param(0); }, configurable: true },
// Maximum Magic Points
mmp: { get: function() { return this.param(1); }, configurable: true },
// ATtacK power
atk: { get: function() { return this.param(2); }, configurable: true },
// DEFense power
def: { get: function() { return this.param(3); }, configurable: true },
// Magic ATtack power
mat: { get: function() { return this.param(4); }, configurable: true },
// Magic DeFense power
mdf: { get: function() { return this.param(5); }, configurable: true },
// AGIlity
agi: { get: function() { return this.param(6); }, configurable: true },
// LUcK
luk: { get: function() { return this.param(7); }, configurable: true },
// HIT rate
hit: { get: function() { return this.xparam(0); }, configurable: true },
// EVAsion rate
eva: { get: function() { return this.xparam(1); }, configurable: true },
// CRItical rate
cri: { get: function() { return this.xparam(2); }, configurable: true },
// Critical EVasion rate
cev: { get: function() { return this.xparam(3); }, configurable: true },
// Magic EVasion rate
mev: { get: function() { return this.xparam(4); }, configurable: true },
// Magic ReFlection rate
mrf: { get: function() { return this.xparam(5); }, configurable: true },
// CouNTer attack rate
cnt: { get: function() { return this.xparam(6); }, configurable: true },
// Hp ReGeneration rate
hrg: { get: function() { return this.xparam(7); }, configurable: true },
// Mp ReGeneration rate
mrg: { get: function() { return this.xparam(8); }, configurable: true },
// Tp ReGeneration rate
trg: { get: function() { return this.xparam(9); }, configurable: true },
// TarGet Rate
tgr: { get: function() { return this.sparam(0); }, configurable: true },
// GuaRD effect rate
grd: { get: function() { return this.sparam(1); }, configurable: true },
// RECovery effect rate
rec: { get: function() { return this.sparam(2); }, configurable: true },
// PHArmacology
pha: { get: function() { return this.sparam(3); }, configurable: true },
// Mp Cost Rate
mcr: { get: function() { return this.sparam(4); }, configurable: true },
// Tp Charge Rate
tcr: { get: function() { return this.sparam(5); }, configurable: true },
// Physical Damage Rate
pdr: { get: function() { return this.sparam(6); }, configurable: true },
// Magical Damage Rate
mdr: { get: function() { return this.sparam(7); }, configurable: true },
// Floor Damage Rate
fdr: { get: function() { return this.sparam(8); }, configurable: true },
// EXperience Rate
exr: { get: function() { return this.sparam(9); }, configurable: true }
});
|
|