mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Achievement:
- improved handling of rewards Spell: - moved calcuation of effectValue to separate function, use realPointsPerLevel - eval: applied proper format, fixed evalable string when facing multiple signs in a row - display modelviewer for summons Titles: - looks like titles behave differently when using "faction" or "side" Achievement: - implemented rewards (which i have forgotten for almost 2 years) * reworked pet-setup * typos and forgotten changes, that broke code here and there
This commit is contained in:
@@ -17,7 +17,7 @@ class CreatureList extends BaseType
|
||||
{
|
||||
$n = DB::Aowow()->SelectRow('
|
||||
SELECT
|
||||
name,
|
||||
name_loc0,
|
||||
name_loc2,
|
||||
name_loc3,
|
||||
name_loc6,
|
||||
@@ -85,7 +85,7 @@ class CreatureList extends BaseType
|
||||
$data = [];
|
||||
|
||||
for ($i = 1; $i < 5; $i++)
|
||||
if ($_ = $this->curTpl['modelid'.$i])
|
||||
if ($_ = $this->curTpl['displayId'.$i])
|
||||
$data[] = $_;
|
||||
|
||||
return !$data ? 0 : $data[array_rand($data)];
|
||||
|
||||
Reference in New Issue
Block a user