mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Item/ExtendedCost
* display a "sells" entry for every combination of currencies the vendor accepts per item * display every cost combination in the quick infos on the item detail page
This commit is contained in:
@@ -17,6 +17,8 @@ abstract class BaseType
|
||||
protected $queryBase = '';
|
||||
protected $queryOpts = [];
|
||||
|
||||
private $itrStack = [];
|
||||
|
||||
public static $contribute = CONTRIBUTE_ANY;
|
||||
|
||||
/*
|
||||
@@ -287,7 +289,7 @@ abstract class BaseType
|
||||
|
||||
public function &iterate()
|
||||
{
|
||||
$oldIdx = $this->id;
|
||||
$this->itrStack[] = $this->id;
|
||||
|
||||
// reset on __construct
|
||||
$this->reset();
|
||||
@@ -304,6 +306,7 @@ abstract class BaseType
|
||||
|
||||
// fforward to old index
|
||||
$this->reset();
|
||||
$oldIdx = array_pop($this->itrStack);
|
||||
do
|
||||
{
|
||||
if (key($this->templates) != $oldIdx)
|
||||
@@ -311,6 +314,7 @@ abstract class BaseType
|
||||
|
||||
$this->curTpl = current($this->templates);
|
||||
$this->id = key($this->templates);
|
||||
next($this->templates);
|
||||
break;
|
||||
}
|
||||
while (next($this->templates));
|
||||
|
||||
Reference in New Issue
Block a user