Example #1
0
            public override BuffInstance Clone()
            {
                BuffInstancePetstilence buffInstance = new BuffInstancePetstilence(mBuff,
                                                                                   mBuffGuid, mEffectValue, mTimeoutCount);

                buffInstance.mIsIndoors = mIsIndoors;
                return(buffInstance);
            }
Example #2
0
        public override void OnAddition(BuffManager bm, BuffInstance bi, bool travelReaddition)
        {
            BuffInstancePetstilence buffInstanceSniffles = bi as BuffInstancePetstilence;

            //Actor.PlaySoloAnimation("ac_idle_sit_groomSelf_hack_x", yield: true, (ProductVersion)512);

            buffInstanceSniffles.SnifflesContagionBroadcaster = new ReactionBroadcaster(bi.TargetSim.CreatedSim,
                                                                                        kSickBroadcastParams, PetstilenceContagionCallback);
            base.OnAddition(bm, bi, travelReaddition);
        }
Example #3
0
        public override void OnRemoval(BuffManager bm, BuffInstance bi)
        {
            BuffInstancePetstilence buffInstanceGermy = bi as BuffInstancePetstilence;

            if (buffInstanceGermy.SnifflesContagionBroadcaster != null)
            {
                buffInstanceGermy.SnifflesContagionBroadcaster.Dispose();
                buffInstanceGermy.SnifflesContagionBroadcaster = null;
            }
            base.OnRemoval(bm, bi);
        }