ace/Source/ACE.Server/Entity/Mutations/MutationOutcome.cs
gmriggs c90baf8a80
update recipes to use mutation scripts (#3593)
* update recipes to use mutation scripts

* additional refactoring

* .

* update proficiency code

* foolproof salvage code is still needed until recipes are added

* add comment

* add rare foolproof

* update sandstone

* adding sandstone mutation

* update RecipeManager_New recipes for foolproof salvage

* add RecipeManager_New caching

* finish removing ClearRecipe()

* update comments

* update defense imbues to include shields, as per base recipe

* improved UpdateObject server sync
2021-07-11 20:14:21 -04:00

21 lines
507 B
C#

using System.Collections.Generic;
using ACE.Server.WorldObjects;
namespace ACE.Server.Entity.Mutations
{
public class MutationOutcome
{
public List<EffectList> EffectLists = new List<EffectList>();
public bool TryMutate(WorldObject wo, double rng)
{
foreach (var effectList in EffectLists)
{
if (rng < effectList.Chance)
return effectList.TryMutate(wo);
}
return false;
}
}
}