// Token: 0x06004E72 RID: 20082 RVA: 0x0017D0A8 File Offset: 0x0017B2A8
        public override int HaveEffect(IComponentOwner owner, params object[] param)
        {
            PlayerBasicInfoComponentCommon playerBasicInfoComponentCommon = owner.GetOwnerComponent("PlayerBasicInfo") as PlayerBasicInfoComponentCommon;

            playerBasicInfoComponentCommon.IncreamentEnergy((long)this.EnergyCount, true, GameFunctionType.GameFunctionType_Item, base.ContentId.ToString());
            return(0);
        }
Exemple #2
0
        // Token: 0x06004E6A RID: 20074 RVA: 0x0017CFD8 File Offset: 0x0017B1D8
        public override int HaveEffect(IComponentOwner owner, params object[] param)
        {
            PlayerBasicInfoComponentCommon playerBasicInfoComponentCommon = owner.GetOwnerComponent("PlayerBasicInfo") as PlayerBasicInfoComponentCommon;

            playerBasicInfoComponentCommon.AddGold(this.GoldCount, GameFunctionType.GameFunctionType_Item, base.ContentId.ToString());
            return(0);
        }
Exemple #3
0
        // Token: 0x06004E60 RID: 20064 RVA: 0x0017CF10 File Offset: 0x0017B110
        public override int HaveEffect(IComponentOwner owner, params object[] param)
        {
            this.HeroId = (int)param[0];
            HeroComponentCommon heroComponentCommon = owner.GetOwnerComponent("Hero") as HeroComponentCommon;

            return(heroComponentCommon.AddHeroExp(this.HeroId, this.HeroExp));
        }
        // Token: 0x06004E76 RID: 20086 RVA: 0x0017D110 File Offset: 0x0017B310
        public override int HaveEffect(IComponentOwner owner, params object[] param)
        {
            string newName = param[0] as string;
            PlayerBasicInfoComponentCommon playerBasicInfoComponentCommon = owner.GetOwnerComponent("PlayerBasicInfo") as PlayerBasicInfoComponentCommon;

            return(playerBasicInfoComponentCommon.ChangePlayerName(newName));
        }
        // Token: 0x06004E89 RID: 20105 RVA: 0x0017D238 File Offset: 0x0017B438
        public override int HaveEffect(IComponentOwner owner, params object[] param)
        {
            HeroComponentCommon heroComponentCommon = owner.GetOwnerComponent("Hero") as HeroComponentCommon;

            this.HeroId = (int)param[0];
            int addExp = this.CalculateAddFavorabilityExp(this.HeroId);

            return(heroComponentCommon.AddHeroFavorabilityLevel(this.HeroId, addExp));
        }
        // Token: 0x06004E66 RID: 20070 RVA: 0x0017CF88 File Offset: 0x0017B188
        public override int HaveEffect(IComponentOwner owner, params object[] param)
        {
            PlayerBasicInfoComponentCommon playerBasicInfoComponentCommon = owner.GetOwnerComponent("PlayerBasicInfo") as PlayerBasicInfoComponentCommon;

            return(playerBasicInfoComponentCommon.AddPlayerExp(this.PlayerExp));
        }