Skip to content

Commit

Permalink
Various fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamKyle committed Jan 15, 2024
1 parent 346674a commit eec40a1
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 24 deletions.
22 changes: 11 additions & 11 deletions app/Console/Commands/RessurectRaidBoss.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,17 @@ public function handle(UpdateRaidMonsters $updateRaidMonsters) {

$corruptedLocations = Location::whereIn('id', $corruptedLocationIds)->get();

// foreach ($corruptedLocations as $location) {
// $characters = Character::leftJoin('maps', 'characters.id', '=', 'maps.character_id')
// ->where('maps.character_position_x', $location->x)
// ->where('maps.character_position_y', $location->y)
// ->where('maps.game_map_id', $location->game_map_id)
// ->get();

// foreach ($characters as $character) {
// $updateRaidMonsters->updateMonstersForRaidLocations($character, $location);
// }
// }
foreach ($corruptedLocations as $location) {
$characters = Character::leftJoin('maps', 'characters.id', '=', 'maps.character_id')
->where('maps.character_position_x', $location->x)
->where('maps.character_position_y', $location->y)
->where('maps.game_map_id', $location->game_map_id)
->get();

foreach ($characters as $character) {
$updateRaidMonsters->updateMonstersForRaidLocations($character, $location);
}
}
}
}
}
12 changes: 1 addition & 11 deletions app/Flare/GameImporter/Console/Commands/MassImportCustomData.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,8 @@ class MassImportCustomData extends Command {
*/
public function handle() {

// Handle importing things in a custom format.
Artisan::call('import:game-data Skills');
Artisan::call('import:game-data Items');
Artisan::call('import:game-data Monsters');
Artisan::call('import:game-data "Admin Section"');
Artisan::call('import:game-data Quests');
Artisan::call('import:game-data Locations');

Artisan::call('change:damage-amount-on-affixes');
Artisan::call('assign:new-factions-to-characters');
Artisan::call('create:character-attack-data');
Artisan::call('create:quest-cache');

$this->importInformationSection();
}

Expand Down
2 changes: 1 addition & 1 deletion app/Flare/ServerFight/Fight/Affixes.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function getCharacterAffixDamage(array $attackData, bool $isPvp, float $m
$nonStackingDamage = ($attackData['affixes']['non_stacking_damage'] - $attackData['damage_deduction']) + $totalDamage;
$cantBeResisted = $attackData['affixes']['cant_be_resisted'];

$weaponDamage = $attackData[$attribute] + ($attackData[$attribute] * ($totalDamage + $nonStackingDamage));
$weaponDamage = $attackData[$attribute] + ($attackData[$attribute] * $totalDamage);
$nonStackingWeaponDamage = $attackData[$attribute] + ($attackData[$attribute] * $nonStackingDamage);

if ($totalDamage > 0 || $nonStackingDamage > 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public function classSpecialtyDamage(bool $isPvp = false) {
}

if ($special['required_attack_type'] === $this->attackData['attack_type']) {

$this->monsterHealth -= $special['damage'];

$this->addMessage('Your class special: ' . $special['name'] . ' fires off and you do: ' . number_format($special['damage']) . ' damage to the enemy!', "player-action", $isPvp);
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion resources/data-imports/Admin Section/information.json

Large diffs are not rendered by default.

0 comments on commit eec40a1

Please sign in to comment.