public void RemoveRune(Rune rune) { Runes.Remove(rune); CalculateStat(); CreatureManager.Instance.Save(); RuneManager.Instance.Save(); }
public void RemoveRune(Item rune) { rune.EmbeddedOnItem = null; rune.EquippedThisTurn = true; if (Owner == null || Owner.BotId == AIStatics.WuffieBotId) { rune.Owner = null; rune.PvPEnabled = (int)GameModeStatics.GameModes.Any; rune.dbLocationName = dbLocationName; rune.TimeDropped = DateTime.Now; } else { rune.Owner = Owner; rune.PvPEnabled = Owner.BotId == AIStatics.ActivePlayerBotId ? Owner.GameMode : (int)GameModeStatics.GameModes.Any; rune.dbLocationName = string.Empty; } if (rune.PvPEnabled == (int)GameModeStatics.GameModes.Superprotection) { rune.PvPEnabled = (int)GameModeStatics.GameModes.Protection; } Runes.Remove(rune); }