|
@@ -100,28 +100,28 @@ public class CombatHeroInfo
|
|
|
promoteConfig = ConfigComponent.Instance.Get<HeroPromoteConfig>(star);
|
|
|
}
|
|
|
|
|
|
- public void InitMonster(int id,int level, int star)
|
|
|
+ public void InitMonster(int modelID,int level, int star = 1)
|
|
|
{
|
|
|
- SetDataConfig(id, level, star);
|
|
|
+ SetDataConfig(modelID, level, star);
|
|
|
CalFactor();
|
|
|
CalAttribute();
|
|
|
}
|
|
|
|
|
|
- public void InitMonster(int id,int level)
|
|
|
- {
|
|
|
- HeroModelConfig heroModelConfig = ConfigComponent.Instance.Get<HeroModelConfig>(id);
|
|
|
- HeroPowerUpConfig heroPowerUpConfig = ConfigComponent.Instance.Get<HeroPowerUpConfig>(level);
|
|
|
- hp = (EncryptionLong)(heroModelConfig.hp*heroPowerUpConfig.HPFactor);
|
|
|
- defense=(EncryptionLong)(heroModelConfig.def*heroPowerUpConfig.DEFFactor);
|
|
|
- attack=(EncryptionLong)(heroModelConfig.attack*heroPowerUpConfig.ATKFactor);
|
|
|
- attSpeed=(EncryptionFloat)heroModelConfig.speed_atk;
|
|
|
- crit=(EncryptionFloat)heroModelConfig.crit;
|
|
|
- skillId = heroModelConfig.skillID;
|
|
|
- modelName = heroModelConfig.model;
|
|
|
- isGpu = heroModelConfig.isUseGpu;
|
|
|
- maxDis=heroModelConfig.range_atk;
|
|
|
- maxDisTo = maxDis * maxDis;
|
|
|
- }
|
|
|
+ // public void InitMonster(int id,int level)
|
|
|
+ // {
|
|
|
+ // HeroModelConfig heroModelConfig = ConfigComponent.Instance.Get<HeroModelConfig>(id);
|
|
|
+ // HeroPowerUpConfig heroPowerUpConfig = ConfigComponent.Instance.Get<HeroPowerUpConfig>(level);
|
|
|
+ // hp = (EncryptionLong)(heroModelConfig.hp*heroPowerUpConfig.HPFactor);
|
|
|
+ // defense=(EncryptionLong)(heroModelConfig.def*heroPowerUpConfig.DEFFactor);
|
|
|
+ // attack=(EncryptionLong)(heroModelConfig.attack*heroPowerUpConfig.ATKFactor);
|
|
|
+ // attSpeed=(EncryptionFloat)heroModelConfig.speed_atk;
|
|
|
+ // crit=(EncryptionFloat)heroModelConfig.crit;
|
|
|
+ // skillId = heroModelConfig.skillID;
|
|
|
+ // modelName = heroModelConfig.model;
|
|
|
+ // isGpu = heroModelConfig.isUseGpu;
|
|
|
+ // maxDis=heroModelConfig.range_atk;
|
|
|
+ // maxDisTo = maxDis * maxDis;
|
|
|
+ // }
|
|
|
|
|
|
public CombatHeroInfo Copy()
|
|
|
{
|