ace/Source/ACE.Server/Entity/Mutations/EffectList.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

22 lines
495 B
C#

using System.Collections.Generic;
using ACE.Server.WorldObjects;
namespace ACE.Server.Entity.Mutations
{
public class EffectList
{
public float Chance;
public List<Effect> Effects = new List<Effect>();
public bool TryMutate(WorldObject wo)
{
var mutated = false;
foreach (var effect in Effects)
mutated |= effect.TryMutate(wo); // stop completely on failure?
return mutated;
}
}
}