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,145 @@
package net.pixvi.myr.element.gacha
{
import net.pixvi.myr.center.Table;
public class GachaVo
{
public var id:String;
public function GachaVo()
{
super();
}
public function get name() : String
{
return table().name;
}
public function get percTip() : String
{
if(table().chanceTarget != null && Table.gacha_machine[table().chanceTarget].percTip != null)
{
return Table.gacha_machine[table().chanceTarget].percTip;
}
return table().percTip;
}
public function getMoney() : int
{
if(table().getMoney != null)
{
return table().getMoney;
}
return 0;
}
public function get item() : int
{
if(table().item == null)
{
table().item = -1;
}
return table().item;
}
public function get type() : int
{
return table().type;
}
public function get replace() : String
{
return table().replace;
}
public function get max() : int
{
if(table().max == null)
{
return 10;
}
return table().max;
}
public function get des() : String
{
return table().des;
}
public function get money() : int
{
return table().money;
}
public function get ke() : int
{
return table().ke;
}
public function get eggs() : Object
{
return table().eggs;
}
public function get chance() : Array
{
if(table().chanceTarget != null)
{
return Table.gacha_machine[table().chanceTarget].chance;
}
return table().chance;
}
public function get img() : String
{
return table().img;
}
public function get img_bg() : String
{
return table().img_bg;
}
public function get freegift() : int
{
return table().freegift;
}
public function get hideImg() : Boolean
{
return table().hideImg == true;
}
public function get hideText() : Boolean
{
return table().hideText == true;
}
public function get getImgBgSrc() : String
{
return "data/img/gacha/" + this.img_bg + ".png";
}
public function hasImgBg() : Boolean
{
if(img_bg != null && img_bg != "")
{
return true;
}
return false;
}
public function getImgSrc() : String
{
return "data/img/gacha/" + this.img + ".png";
}
public function table() : Object
{
return Table.gacha_machine[id];
}
}
}