private void GetAddInfo() { CabinAvatarEnhanceDataItem avatarEnhanceCabinByClass = Singleton <IslandModule> .Instance.GetAvatarEnhanceCabinByClass(this._avatarClassID); this._hpAdd = avatarEnhanceCabinByClass.GetAvatarAttrEnhance(1) * 100f; this._spAdd = avatarEnhanceCabinByClass.GetAvatarAttrEnhance(2) * 100f; this._atkAdd = avatarEnhanceCabinByClass.GetAvatarAttrEnhance(3) * 100f; this._crtAdd = avatarEnhanceCabinByClass.GetAvatarAttrEnhance(5) * 100f; this._defAdd = avatarEnhanceCabinByClass.GetAvatarAttrEnhance(4) * 100f; }
private float GetBaseSP() { float num = this._starMetaData.spBase + ((this.level - 1) * this._starMetaData.spAdd); CabinAvatarEnhanceDataItem avatarEnhanceCabinByClass = Singleton <IslandModule> .Instance.GetAvatarEnhanceCabinByClass(this.ClassId); if (avatarEnhanceCabinByClass != null) { num *= 1f + avatarEnhanceCabinByClass.GetAvatarAttrEnhance(2); } return(num); }
public CabinAvatarEnhanceDataItem GetAvatarEnhanceCabinByClass(int classID) { CabinAvatarEnhanceDataItem item = this._cabinDict[2] as CabinAvatarEnhanceDataItem; if (item._classType == classID) { return(item); } item = this._cabinDict[6] as CabinAvatarEnhanceDataItem; if (item._classType == classID) { return(item); } item = this._cabinDict[7] as CabinAvatarEnhanceDataItem; if (item._classType == classID) { return(item); } return(null); }