- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
public function getDIDInventory():DIDInventory{
if (!_didiDefined) {
if (this.tags.find(TAG_INVENTORY)) {
didi = new DIDInventory();
didi.id = this.name;
didi.icon = this.icon;
didi.title = this.title;
didi.ttTitle = this.title;
didi.ttDescription = this.description;
didi.type = DisplayedItemData.RESOURCE;
didi.sortOrder = this.sort;
this._didi = didi;
} else {
var b:Buildable = BuildableCollection.instance.getProxy(this.name) as Buildable;
var didi:DIDInventory;
if (b) {
didi = new DIDInventory();
didi.id = this.name;
didi.icon = b.icon;
didi.title = b.label;
didi.ttTitle = b.label;
didi.ttDescription = b.desc;
didi.type = DisplayedItemData.BUILDABLE;
didi.sortOrder = b.sortOrder;
this._didi = didi;
} else {
var c:Consumable = ConsumableCollection.instance.getProxy(this.name) as Consumable;
if (c && c.tags.find(Consumable.TAG_INVENTORY)) {
didi = new DIDInventory();
didi.id = this.name;
didi.icon = c.icon;
didi.title = c.label;
didi.ttTitle = c.label;
didi.ttDescription = c.desc;
didi.type = DisplayedItemData.RESOURCE;
didi.sortOrder = c.sortOrder;
this._didi = didi;
}
}
}
}
if (this._didi) {
this._didi.description = invMax?(this.quantity+"/"+invMax):("x"+this.quantity);
}
return this._didi;
}
kyzi007 06.01.2013 23:34 # +2
bormand 07.01.2013 15:13 # 0
kyzi007 07.01.2013 19:03 # 0
bormand 07.01.2013 19:07 # +2
tirinox 07.01.2013 12:37 # +2
Да еще много-много много раз
Lure Of Chaos 08.01.2013 02:30 # +1