Initialize local project and fix ranch growth synchronization

This commit is contained in:
AttilaNet
2026-11-07 22:14:49 +08:00
commit 657f5f33b5
1417 changed files with 202171 additions and 0 deletions
@@ -0,0 +1,24 @@
package net.pixvi.myr.element.stack
{
public class StackOpenType
{
public static var GOLD:int = 1;
public static var KE:int = 2;
public static var SYSTEM:int = 3;
public static var FREE:int = 4;
public static var TYPE1:int = 5;
public static var TYPE2:int = 6;
public function StackOpenType()
{
super();
}
}
}
@@ -0,0 +1,65 @@
package net.pixvi.myr.element.stack
{
import net.pixvi.common.utils.PiObject;
import net.pixvi.myr.center.Master;
import net.pixvi.myr.center.MonsterCenter;
import net.pixvi.myr.element.mon.MonsterVo;
public class StackVo extends PiObject
{
public var id:int;
public var monsterId:Number;
public var openType:int;
public var isNew:Boolean = false;
public var position:int;
public var atkNum:int;
public var defNum:int;
public var hpNum:int;
public var dexNum:int;
public function StackVo()
{
super();
}
public function init(sid:int, openType:int) : void
{
this.id = sid;
this.openType = openType;
}
public function get isEmpty() : Boolean
{
return monsterId <= 0;
}
public function get maxJxhNum() : int
{
return Master.history.getFeedLevel(getMon().type);
}
public function get curJxhNum() : int
{
return atkNum + defNum + hpNum + dexNum;
}
public function getMon() : MonsterVo
{
if(monsterId > 0)
{
return MonsterCenter.getIns().getMonById(monsterId);
}
return null;
}
}
}