public void SetStatus(StatusValue status)
 {
     this.userMonster.hp        = status.hp.ToString();
     this.userMonster.attack    = status.attack.ToString();
     this.userMonster.defense   = status.defense.ToString();
     this.userMonster.spAttack  = status.magicAttack.ToString();
     this.userMonster.spDefense = status.magicDefense.ToString();
     this.userMonster.speed     = status.speed.ToString();
     this.userMonster.luck      = status.luck.ToString();
 }
예제 #2
0
        public static StatusValue GetStatusValue(string monsterId, string level)
        {
            StatusValue         result = default(StatusValue);
            MonsterClientMaster monsterMasterByMonsterId = MonsterMaster.GetMonsterMasterByMonsterId(monsterId);

            result.hp           = MonsterStatusData.CalcLevelStatusUpValue(monsterMasterByMonsterId.Simple.defaultHp, monsterMasterByMonsterId.Simple.maxHp, level, monsterMasterByMonsterId.Simple.maxLevel);
            result.attack       = MonsterStatusData.CalcLevelStatusUpValue(monsterMasterByMonsterId.Simple.defaultAttack, monsterMasterByMonsterId.Simple.maxAttack, level, monsterMasterByMonsterId.Simple.maxLevel);
            result.defense      = MonsterStatusData.CalcLevelStatusUpValue(monsterMasterByMonsterId.Simple.defaultDefense, monsterMasterByMonsterId.Simple.maxDefense, level, monsterMasterByMonsterId.Simple.maxLevel);
            result.magicAttack  = MonsterStatusData.CalcLevelStatusUpValue(monsterMasterByMonsterId.Simple.defaultSpAttack, monsterMasterByMonsterId.Simple.maxSpAttack, level, monsterMasterByMonsterId.Simple.maxLevel);
            result.magicDefense = MonsterStatusData.CalcLevelStatusUpValue(monsterMasterByMonsterId.Simple.defaultSpDefense, monsterMasterByMonsterId.Simple.maxSpDefense, level, monsterMasterByMonsterId.Simple.maxLevel);
            result.speed        = int.Parse(monsterMasterByMonsterId.Simple.speed);
            return(result);
        }