Initialize local project and fix ranch growth synchronization
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
package net.pixvi.myr.element.lib
|
||||
{
|
||||
import net.pixvi.common.utils.PiObject;
|
||||
import net.pixvi.myr.center.LibCenter;
|
||||
import net.pixvi.myr.center.Table;
|
||||
|
||||
public class LibEquipVo extends PiObject
|
||||
{
|
||||
|
||||
public static var q:Array = ["0","C","B","A","S","SS"];
|
||||
|
||||
public var equipType:int;
|
||||
|
||||
public var no:int;
|
||||
|
||||
public function LibEquipVo()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public function get noName() : String
|
||||
{
|
||||
if(part > 3)
|
||||
{
|
||||
return "Z" + no;
|
||||
}
|
||||
return q[quality] + no;
|
||||
}
|
||||
|
||||
public function get quality() : int
|
||||
{
|
||||
return Table.item_info[equipType].quality;
|
||||
}
|
||||
|
||||
public function get part() : int
|
||||
{
|
||||
return Table.item_info[equipType].part;
|
||||
}
|
||||
|
||||
public function get unlock() : Boolean
|
||||
{
|
||||
return LibCenter.getIns().checkEquipUnlock(equipType);
|
||||
}
|
||||
|
||||
public function get recNew() : Boolean
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function get sort() : int
|
||||
{
|
||||
if(part > 3)
|
||||
{
|
||||
return quality * 1000000 + no;
|
||||
}
|
||||
return quality * 100000 + no;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
package net.pixvi.myr.element.lib
|
||||
{
|
||||
import net.pixvi.common.utils.PiObject;
|
||||
import net.pixvi.myr.center.LibCenter;
|
||||
import net.pixvi.myr.center.Table;
|
||||
import net.pixvi.pfw.utils.ArrayUtil;
|
||||
|
||||
public class LibTypeVo extends PiObject
|
||||
{
|
||||
|
||||
public static var newType:Array = [];
|
||||
|
||||
public var monType:int;
|
||||
|
||||
public var no:int = 0;
|
||||
|
||||
public function LibTypeVo()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public function get unlock() : Boolean
|
||||
{
|
||||
return LibCenter.getIns().checkUnlock(monType);
|
||||
}
|
||||
|
||||
public function get recNew() : Boolean
|
||||
{
|
||||
var o:int = newType.indexOf(monType);
|
||||
return newType.indexOf(monType) != -1;
|
||||
}
|
||||
|
||||
public function set recNew(val:Boolean) : void
|
||||
{
|
||||
if(recNew && !val)
|
||||
{
|
||||
ArrayUtil.remove(newType,monType);
|
||||
}
|
||||
}
|
||||
|
||||
public function get sort() : int
|
||||
{
|
||||
return Table.monster_info[monType].sort;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user