diff --git a/webapp/services/BattleDataService.php b/webapp/services/BattleDataService.php index 8dbbdd37..400d5da2 100644 --- a/webapp/services/BattleDataService.php +++ b/webapp/services/BattleDataService.php @@ -352,6 +352,16 @@ class BattleDataService extends BaseService { } private function rewardGold($heroDb) + { + $heroMeta = mt\Item::get($heroDb['hero_id']); + if (!$heroMeta) { + return; + } + $killMeta = mt\KillReward::get(getReqVal('kills', 0)); + $rankMeta = mt\RankReward::get(getReqVal('ranked', 0)); + } + + private function oldRewardGold($heroDb) { $heroMeta = mt\Item::get($heroDb['hero_id']); if (!$heroMeta) { diff --git a/webapp/services/FormulaService.php b/webapp/services/FormulaService.php new file mode 100644 index 00000000..8b6b924b --- /dev/null +++ b/webapp/services/FormulaService.php @@ -0,0 +1,47 @@ +