public int GetCurPetBaseProp(FightCreatureProp prop) { if (CurPet != null) { return((int)GetCurPetBaseProp(prop.ToString())); } return(0); }
public int GetFightPetAttr(int propID) { if (m_fightAttrDic.ContainsKey(CurFightingPet)) { stFightPetAttrPetUserCmd_S cmd = m_fightAttrDic[CurFightingPet]; if (propID == (int)CreatureProp.MaxHp) { return(cmd.maxhp); } else if (propID == (int)FightCreatureProp.PhysicsAttack) { return(cmd.pdam); } else if (propID == (int)FightCreatureProp.MagicAttack) { return(cmd.mdam); } else if (propID == (int)FightCreatureProp.PhysicsDefend) { return(cmd.pdef); } else if (propID == (int)FightCreatureProp.EleDefend) { return(cmd.lightdef); } else if (propID == (int)FightCreatureProp.FireDefend) { return(cmd.heatdef); } else if (propID == (int)FightCreatureProp.WitchDefend) { return(cmd.wavedef); } else if (propID == (int)FightCreatureProp.IceDefend) { return(cmd.biochdef); } else if (propID == (int)FightCreatureProp.Hit) { return(cmd.hit); } else if (propID == (int)FightCreatureProp.Dodge) { return(cmd.hide); } else if (propID == (int)FightCreatureProp.PhysicsCrit) { return(cmd.plucky); } else if (propID == (int)FightCreatureProp.MagicCrit) { return(cmd.mlucky); } else if (propID == (int)FightCreatureProp.MagicDefend) { return(cmd.mdef); } else { FightCreatureProp prop = (FightCreatureProp)propID; Log.Error("no attr " + prop.ToString()); return(0); } } else { //Log.Error("no data"); return(0); } }