25 lines
622 B
C#
25 lines
622 B
C#
|
|
using Thousandto.Cfg.Data;
|
|
using Thousandto.Code.Global;
|
|
|
|
namespace Thousandto.Code.Logic
|
|
{
|
|
public class CollectionPropterty : BaseProperty
|
|
{
|
|
public int CfgID { get; private set; }
|
|
public DeclareGather Cfg { get; private set; }
|
|
|
|
public CollectionPropterty(Collection owner, DeclareGather cfg)
|
|
{
|
|
_owner = owner;
|
|
ID = owner.ID;
|
|
Cfg = cfg;
|
|
CfgID = Cfg.Id;
|
|
Name = Cfg.Name;
|
|
LogicBodyRadius = cfg.LogicBodySize / 100f;
|
|
CurHP = 1;
|
|
SetBattleProp(AllBattleProp.MaxHP, 1);
|
|
}
|
|
}
|
|
}
|