private void ShowResult() { var msg = "对决结束!\r\n"; if (Winner == null) { Winner = SelfPet.HP > AimPet.HP ? SelfPet : AimPet; } msg += $"恭喜{Winner.Name} 获得了胜利!奖励捞瓶子机会一次(当日有效)!"; var dailyLimit = DailyLimitRecord.Get(Winner.QQNum, "DriftBottleAI_FishingBottle"); dailyLimit.Decache(); dailyLimit.Update(); msg += $"\r\n很遗憾,{Loser.Name}输掉了比赛,在12小时内无法捞瓶子!"; var buff = new OSPersonBuff { QQNum = Loser.QQNum, Name = "昙天", Description = "不可以捞瓶子", ExpiryTime = DateTime.Now.AddHours(12), IsPositive = false, Data = 1, Source = Winner.QQNum }; buff.Add(); SendMessage(msg); }
public void 钻石尘() { var buff = new OSPersonBuff { QQNum = SelfQQNum, Name = "钻石尘", Description = "捞瓶子时有50%的概率丢失40金币", ExpiryTime = DateTime.Now.AddHours(12), IsPositive = false, Source = AimQQNum }; buff.Add(); }
public void 疏雨() { var buff = new OSPersonBuff { QQNum = SelfQQNum, Name = "疏雨", Description = "将物品贩卖给商店时将额外获得20%的金币", ExpiryTime = DateTime.Now.AddHours(12), IsPositive = true, Source = AimQQNum }; buff.Add(); }
public void 极光() { var buff = new OSPersonBuff { QQNum = SelfQQNum, Name = "极光", Description = "商店购买享有20%的折扣", ExpiryTime = DateTime.Now.AddHours(12), IsPositive = true, Data = 1, Source = AimQQNum }; buff.Add(); }
public void 苍天() { var buff = new OSPersonBuff { QQNum = SelfQQNum, Name = "苍天", Description = "进行交易时免除手续费", ExpiryTime = DateTime.Now.AddHours(12), IsPositive = true, Data = 1, Source = AimQQNum }; buff.Add(); }
public void 快晴() { var buff = new OSPersonBuff { QQNum = SelfQQNum, Name = "快晴", Description = "无法从事商业活动(贩卖/购买/交易)", ExpiryTime = DateTime.Now.AddHours(12), IsPositive = false, Data = 1, Source = AimQQNum }; buff.Add(); }
public void 昙天() { var buff = new OSPersonBuff { QQNum = SelfQQNum, Name = "昙天", Description = "不可以捞瓶子", ExpiryTime = DateTime.Now.AddHours(12), IsPositive = false, Data = 1, Source = AimQQNum }; buff.Add(); }