Files
Continentis/Assets/Scripts/MainGame/Card/CardSubmodules/WeightSubmodule.cs

26 lines
650 B
C#
Raw Normal View History

2025-10-03 00:02:43 -04:00
using System;
using UnityEngine;
namespace Continentis.MainGame.Card
{
2025-11-15 12:17:34 -05:00
public class WeightSubmodule : SubmoduleBase<CardInstance>
2025-10-03 00:02:43 -04:00
{
public bool forceUse;
public bool forceIgnore;
public float baseWeight;
public float currentWeight;
2025-11-15 12:17:34 -05:00
public WeightSubmodule(CardInstance owner) : base(owner)
2025-10-03 00:02:43 -04:00
{
this.forceUse = false;
this.forceIgnore = false;
this.baseWeight = owner.cardData.baseWeight;
this.currentWeight = baseWeight;
}
2025-11-15 09:08:36 -05:00
public void RefreshCurrentWeight()
{
this.currentWeight = baseWeight;
}
2025-10-03 00:02:43 -04:00
}
}