From 5146895cf537dd69867da612abed5b4abaf805cd Mon Sep 17 00:00:00 2001 From: Matheus Date: Thu, 18 Sep 2025 12:06:59 -0300 Subject: ME ELIMINE AAAAAAAAAAAAAAAAAAAAAAAAAAAA --- scripts/Entities/Actions/Action.cs | 32 +++++++------------------------- 1 file changed, 7 insertions(+), 25 deletions(-) (limited to 'scripts/Entities/Actions/Action.cs') diff --git a/scripts/Entities/Actions/Action.cs b/scripts/Entities/Actions/Action.cs index b2d6a4b..0bbcc24 100644 --- a/scripts/Entities/Actions/Action.cs +++ b/scripts/Entities/Actions/Action.cs @@ -10,47 +10,29 @@ namespace TheLegendOfGustav.Entities.Actions; /// public abstract partial class Action : RefCounted { - private Actor actor; - - private int cost; + /// + /// O custo da ação. + /// + protected int cost; public Action(Actor actor) { Actor = actor; // Custo base, subclasses podem sobreescrever isto se quiserem. - Cost = 10; + cost = 10; } /// /// O ator que realiza a ação. /// - public Actor Actor - { - get => actor; - private set - { - actor = value; - } - } - - /// - /// O custo da ação. - /// - protected int Cost - { - get => cost; - set - { - cost = value; - } - } + public Actor Actor { get; private set; } /// /// É conveniente ter acesso ao mapa dentro de uma ação. /// protected MapData MapData { - get => actor.MapData; + get => Actor.MapData; } /// -- cgit v1.2.3