mirror of
https://github.com/ACEmulator/ACE
synced 2026-08-17 12:26:06 -04:00
* 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
22 lines
495 B
C#
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;
|
|
}
|
|
}
|
|
}
|