Beispiel #1
0
        public override void Start(GamePlayer player)
        {
            OfferMultipleBuffer offerMultipleBuffer = player.BufferList.GetOfType(typeof(OfferMultipleBuffer)) as OfferMultipleBuffer;

            if (offerMultipleBuffer != null)
            {
                offerMultipleBuffer.Info.ValidDate += base.Info.ValidDate;
                player.BufferList.UpdateBuffer(offerMultipleBuffer);
                return;
            }
            base.Start(player);
            player.OfferAddPlus *= (double)base.Info.Value;
        }
Beispiel #2
0
        public override void Start(GamePlayer player)
        {
            OfferMultipleBuffer old = player.BufferList.GetOfType(typeof(OfferMultipleBuffer)) as OfferMultipleBuffer;

            if (old != null)
            {
                old.Info.ValidDate += Info.ValidDate;
                player.BufferList.UpdateBuffer(old);
            }
            else
            {
                base.Start(player);
                player.OfferAddPlus *= Info.Value;
            }
        }
Beispiel #3
0
 public static AbstractBuffer CreateBuffer(BufferInfo info)
 {
     AbstractBuffer buffer = null;
     switch (info.Type)
     {
         case 11:
             buffer = new KickProtectBuffer(info);
             break;
         case 12:
             buffer = new OfferMultipleBuffer(info);
             break;
         case 13:
             buffer = new GPMultipleBuffer(info);
             break;
         case 15:
             buffer = new PropsBuffer(info);
             break;
     }
     return buffer;
 }
Beispiel #4
0
        public static AbstractBuffer CreateBuffer(BufferInfo info)
        {
            AbstractBuffer result = null;

            switch (info.Type)
            {
            case 11:
                result = new KickProtectBuffer(info);
                break;

            case 12:
                result = new OfferMultipleBuffer(info);
                break;

            case 13:
                result = new GPMultipleBuffer(info);
                break;

            case 15:
                result = new PropsBuffer(info);
                break;
            }
            return(result);
        }