3 internal sealed
class CharacterAbilityMarkAsLooted: CharacterAbility
5 private readonly Identifier identifier;
6 public CharacterAbilityMarkAsLooted(CharacterAbilityGroup characterAbilityGroup, ContentXElement abilityElement) : base(characterAbilityGroup, abilityElement)
8 identifier = abilityElement.GetAttributeIdentifier(
"identifier", Identifier.Empty);
9 if (identifier.IsEmpty)
11 DebugConsole.ThrowError($
"Error in talent {CharacterTalent.DebugIdentifier}, identifier is empty in {nameof(CharacterAbilityMarkAsLooted)}.",
12 contentPackage: abilityElement.ContentPackage);
16 protected override void ApplyEffect(AbilityObject abilityObject)
18 if (abilityObject is not IAbilityCharacter {
Character: { } character }) {
return; }
20 character.MarkedAsLooted.Add(identifier);
virtual void ApplyEffect()