[BossHP] Allow to "offset" health value.

This commit is contained in:
zaCade
2025-03-06 22:12:49 +01:00
parent ba1da9afa2
commit bface70a04
2 changed files with 19 additions and 0 deletions
@@ -33,6 +33,7 @@ methodmap CConfig < Basic
myclass.SetBool("bMultiTrigger", false);
myclass.SetBool("bNameFixup", false);
myclass.SetInt("iTimeout", -1);
myclass.SetInt("iOffset", 0);
return view_as<CConfig>(myclass);
}
@@ -211,6 +212,18 @@ methodmap CConfig < Basic
}
}
property int iOffset
{
public get()
{
return this.GetInt("iOffset");
}
public set(int value)
{
this.SetInt("iOffset", value);
}
}
property bool IsBreakable {
public get() {
return (this.iMethod == eConfigMethod_Breakable);