Skip to content

Commit bfea41a

Browse files
committed
Added fixes to the dwleve mechanic and adjustments to values
1 parent 50a353b commit bfea41a

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

app/Flare/ServerFight/MonsterPlayerFight.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,16 @@ public function setUpFight(Character $character, array $params, bool $shouldIncr
8888
$this->character = $character;
8989
$this->monster = $this->fetchMonster($character->map, $params['selected_monster_id']);
9090

91-
if ($shouldIncreaseStrength) {
92-
$this->monster = $this->dwelveMonsterService->createMonster($this->monster, $character);
93-
}
94-
9591
$this->attackType = $params['attack_type'];
9692

9793
if (empty($this->monster)) {
9894
return $this->errorResult('No monster was found.');
9995
}
10096

97+
if ($shouldIncreaseStrength) {
98+
$this->monster = $this->dwelveMonsterService->createMonster($this->monster, $character);
99+
}
100+
101101
return $this;
102102
}
103103

app/Flare/Services/DwelveMonsterService.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ class DwelveMonsterService {
1919

2020
const PERCENTAGE_STATS = [
2121
'spell_evasion',
22-
'artifact_annulment',
2322
'affix_resistance',
2423
'healing_percentage',
2524
'entrancing_chance',
@@ -63,8 +62,13 @@ private function increaseMonsterStats(array $monster, int $increaseStatsBy): arr
6362
$monster[$stat] += $increaseStatsBy;
6463
}
6564

65+
if (!isset($monster['attack_range'])) {
66+
dump('Monster does not have damage range?');
67+
dd($monster);
68+
}
69+
6670
$monster['health_range'] = $this->setNewRange($monster['health_range'], $increaseStatsBy);
67-
$monster['damage_range'] = $this->setNewRange($monster['damage_range'], $increaseStatsBy);
71+
$monster['attack_range'] = $this->setNewRange($monster['attack_range'], $increaseStatsBy);
6872

6973
return $monster;
7074
}

app/Game/Exploration/Jobs/DwelveExploration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function handle(
115115
$battleEventHandler->processMonsterDeath($this->character->id, $params['selected_monster_id']);
116116

117117
$this->updateDwelveAutomation($dwelveAutomation, [
118-
'increase_enemy_strength' => $dwelveAutomation->increase_enemy_strength + 0.05
118+
'increase_enemy_strength' => $dwelveAutomation->increase_enemy_strength + 0.0625
119119
]);
120120

121121
DwelveExploration::dispatch($this->character, $this->automationId, $this->dwelveAutomationId, $this->attackType, $this->timeDelay)->delay(now()->addMinutes($this->timeDelay))->onQueue('default_long');

app/Game/Exploration/Services/DwelveExplorationAutomationService.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ public function beginAutomation(Character $character, array $params)
5050
event(new UpdateCharacterStatus($character));
5151

5252
event(new ExplorationLogUpdate($character->user->id, 'The Dwelve will being in 3 minutes. You will fight a random monster every time,
53-
that monster will grow in strength until you simply cannot defeat it or you manage to survive 8 solid hours, good luck with that child. Monsters will grow by 5% per successful fight.'));
53+
that monster will grow in strength until you simply cannot defeat it or you manage to survive 8 solid hours, good luck with that child. Monsters will grow by 6.25% per successful fight
54+
for a max of 1000%. Enemy percentage based stats such as spell evasion, enchanting damage and so on will no grow beyond 125%. No enemy will have elemental atonements. You will fight one monster at a time, every 3 minutes.'));
5455

5556
event(new ExplorationTimeOut($character->user, now()->diffInSeconds($automation->completed_at)));
5657

0 commit comments

Comments
 (0)