高级玩家
- 贡献度
- 1
- 金元
- 4109
- 积分
- 415
- 精华
- 0
- 注册时间
- 2012-9-27
|
本帖最后由 376966593 于 2021-8-19 21:39 编辑
我也是不懂编程光靠看别人帖子然后打开游戏改英文对照着来改的,我也来分享一下其他一些代码
this.threat = (float)this.info.BSthreat + this.threatMD;这个好像是嘲讽值,越高别人就越容易以你为目标
this.attack = (float)(this.info.BSattack + this.precision * 2) + this.AtcMD;命中,我改了2倍精准影响2倍命中
this.dodge = (float)(this.info.BSdodge + this.agility * 2) + 1f * (float)this.intelligence + this.DodMD;闪避,敏捷和智力影响双倍闪避,这里游戏有显示错误还是代码数据弄错,按原代码看是1点敏捷+1闪避,1点智力+0.5闪避,可是游戏里显示1点敏捷+0.5闪避
this.blockbreak = this.info.BSblockBreak + this.blockBreakMD;这个好像是攻击突破格挡几率,没找到相关属性影响
this.block = Mathf.Clamp((float)(this.info.BSblock + this.precision * 2) + this.DefMD, 0f, 100f);格挡,改了精准影响2倍格挡
this.crit = 0f + 1f * (float)this.precision * 2f + this.CriMD;暴击率,改了精准影响双倍暴击几率
this.maxSpeed = this.info.BSms * this.MovementSpeedMD;移速,应该是装备移速+人物移速
this.HPrestore = this.info.BShpr + this.HPRMD;回血
this.SPrestore = this.info.BSspr + 0.1f * (float)this.endurance * 2f + 0.2f * (float)this.willpower * 2f + this.SPRMD;体力回复,改了2倍意志,耐力影响回复数值
this.MPrestore = this.info.BSmpr + 0.2f * (float)this.willpower * 2f + this.MPRMD;魔法回复?到底指的是哪个魔法回复,游戏里好像没找到这个属性,而且是受意志影响的,索性也改了2倍
this.PDR = Mathf.Clamp(this.info.BSpdr + this.PDRMD + (float)this.strength * 2f, 0f, 75f);韧性,改了2倍力量影响
this.MDR = Mathf.Clamp(this.info.BSmdr + this.MDRMD + (float)this.willpower * 2f, 0f, 75f);决断,改了2倍意志影响
this.initiative = 2 * this.agility * 2 + this.intelligence * 2;翻译过来叫主动性,可是游戏里没有找到这个属性,受敏捷和智力影响
this.totalWeight = (float)((gameManager.isBlackthornArena ? 60 : 200) + this.strength * 4)负重,原版是1点力量2点负重,现在改为4点负重
|
|