Aura.Channel.Scripting.Scripts.GameEventScript.AddFishingGround C# (CSharp) Метод

AddFishingGround() защищенный Метод

Adds fishing ground, to be considered when players fish.
The fishing grounds describe where a player can fish under which circumstances, and what they can catch. If multiple fishing grounds exist for a location, the priority and the chance determine which ground is used. For example, if you want to override the Tir fishing spots during and event, you could do the following, which would add a new ground for the Tir spots, with a high priority and a 100% chance, so it always gets selected over the default.
protected AddFishingGround ( int priority, double chance, IEnumerable locations, IEnumerable items, int rod, int bait ) : void
priority int
chance double
locations IEnumerable
items IEnumerable
rod int
bait int
Результат void
		protected void AddFishingGround(int priority, double chance, IEnumerable<string> locations, IEnumerable<DropData> items, int rod = 0, int bait = 0)
		{
			var fishingGroundData = new FishingGroundData();
			fishingGroundData.Name = this.Id;
			fishingGroundData.Priority = priority;
			fishingGroundData.Chance = (float)chance;
			fishingGroundData.Rod = rod;
			fishingGroundData.Bait = bait;
			fishingGroundData.Locations = locations.ToArray();
			fishingGroundData.Items = items.ToArray();
			fishingGroundData.TotalItemChance = items.Sum(a => a.Chance);

			ChannelServer.Instance.GameEventManager.GlobalBonuses.AddFishingGround(this.Id, fishingGroundData);
		}