Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var boosterArray:Array<BoosterInstance> = [];
- var instances = new Array();
- for (i in cast(e.data, Array<Dynamic>))
- {
- var items = [];
- instances = [];
- if (!Std.is(i.items, Hash))
- {
- for (j in cast(i.items, Array<Dynamic>))
- {
- items.push(new Item(j.id, j.name, j.np, j.divinity, j.rarety, i.id, j.subtype, j.bonus));
- j.parentId = i.id;
- instances.push(new ItemInstance(j, inventory.hasItem(j.id) ? inventory.getItem(j.id).getNumber() : 0));
- }
- i.items = items;
- }
- boosterArray.push(new BoosterInstance(i, instances));
- }
Add Comment
Please, Sign In to add comment