override public void InitModel(ref JSONObject source) { base.InitModel(ref source); if (!mIsPlayer) { mBaseConfig = ScriptableObject.CreateInstance <KnightBaseConfig>(); mMeridianConfig = ScriptableObject.CreateInstance <KnightMeridianConfig>(); mBattleConfig = ScriptableObject.CreateInstance <KnightBattleConfig>(); mBaseConfig.InitBaseConfig(ref source); mMeridianConfig.InitMeridianConfig(ref source); mBattleConfig.InitBattleConfig(ref source); mNameID = -1; mName = mBaseConfig.firstName.Append(ref mSbd, mBaseConfig.secendName); } }
public override IScriptableItem Copy() { IScriptableItem config = base.Copy(); KnightBattleConfig target = config as KnightBattleConfig; if (IsCopyRaw) { target.InitBattleConfig(ref mRawJSON); } else { target.potential = potential; target.hp = hp; target.mp = mp; target.selfHealing = selfHealing; target.qi = qi; target.internalForce = internalForce; target.eyesight = eyesight; target.hearing = hearing; target.swordBreath = swordBreath; target.bodilyMovement = bodilyMovement; target.charm = charm; target.fate = fate; target.fingerForce = fingerForce; target.tough = tough; target.physique = physique; target.breath = breath; target.acupoint = acupoint; target.concentrate = concentrate; target.antitoxic = antitoxic; target.debuffTrauma = debuffTrauma; target.debuffInternalInjury = debuffInternalInjury; target.debuffVertigo = debuffVertigo; target.debuffAcupointHit = debuffAcupointHit; target.debuffHorror = debuffHorror; target.debuffToxic = debuffToxic; } return(config); }
protected override void CopyRaw() { base.CopyRaw(); CheckRawCopy(ref mRawRoleCopy); CheckRawCopy(ref mRawDebuffCopy); KnightBattleConfig battleConf = mDruggeryConfig.buffBattle; mRawCopy.AddField("potential", battleConf.potential); mRawCopy.AddField("hp", battleConf.hp); mRawCopy.AddField("mp", battleConf.mp); mRawCopy.AddField("selfHealing", battleConf.selfHealing); mRawCopy.AddField("qi", battleConf.qi); mRawCopy.AddField("internalForce", battleConf.internalForce); mRawCopy.AddField("eyesight", battleConf.eyesight); mRawCopy.AddField("hearing", battleConf.hearing); mRawCopy.AddField("swordBreath", battleConf.swordBreath); mRawCopy.AddField("bodilyMovement", battleConf.bodilyMovement); mRawCopy.AddField("charm", battleConf.charm); mRawCopy.AddField("fate", battleConf.fate); mRawRoleCopy.AddField("fingerForce", battleConf.fingerForce); mRawRoleCopy.AddField("tough", battleConf.tough); mRawRoleCopy.AddField("physique", battleConf.physique); mRawRoleCopy.AddField("breath", battleConf.breath); mRawRoleCopy.AddField("acupoint", battleConf.acupoint); mRawRoleCopy.AddField("concentrate", battleConf.concentrate); mRawRoleCopy.AddField("antitoxic", battleConf.antitoxic); mRawDebuffCopy.AddField("debuffTrauma", battleConf.debuffTrauma); mRawDebuffCopy.AddField("debuffInternalInjury", battleConf.debuffInternalInjury); mRawDebuffCopy.AddField("debuffVertigo", battleConf.debuffVertigo); mRawDebuffCopy.AddField("debuffAcupointHit", battleConf.debuffAcupointHit); mRawDebuffCopy.AddField("debuffHorror", battleConf.debuffHorror); mRawDebuffCopy.AddField("debuffToxic", battleConf.debuffToxic); }