Skip to content

Commit

Permalink
Merge branch 'main' into fix/map-issues
Browse files Browse the repository at this point in the history
  • Loading branch information
elsongabriel authored Feb 26, 2024
2 parents 21ad873 + 2c769f9 commit 1d8c82f
Show file tree
Hide file tree
Showing 17 changed files with 275 additions and 284 deletions.
26 changes: 2 additions & 24 deletions .github/workflows/analysis-sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
name: Analysis - SonarCloud

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches-ignore:
push:
branches:
- main
paths:
- "src/**"
Expand All @@ -22,14 +21,6 @@ jobs:

steps:
- uses: actions/checkout@v3
if: ${{ github.event_name == 'pull_request' || github.event_name == 'pull_request_target' }}
with:
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}

- uses: actions/checkout@v3
if: ${{ github.event_name == 'push' }}
with:
fetch-depth: 0

Expand Down Expand Up @@ -75,20 +66,7 @@ jobs:
mkdir -p build
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE="$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake" -DOPTIONS_ENABLE_CCACHE=ON -DSPEED_UP_BUILD_UNITY=OFF -S . -B build
- name: Run PR sonar-scanner
if: ${{ github.event_name == 'pull_request' || github.event_name == 'pull_request_target' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
sonar-scanner \
--define sonar.cfamily.compile-commands=build/compile_commands.json \
--define sonar.pullrequest.key=${{ github.event.pull_request.number }} \
--define sonar.pullrequest.branch=${{ github.event.pull_request.head.ref }} \
--define sonar.pullrequest.base=${{ github.event.pull_request.base_ref }}
- name: Run sonar-scanner
if: ${{ github.event_name == 'push' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Expand Down
60 changes: 30 additions & 30 deletions data-canary/monster/demons/fury.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ monster.outfit = {
lookType = 149,
lookHead = 94,
lookBody = 77,
lookLegs = 96,
lookFeet = 0,
lookAddons = 3,
lookLegs = 78,
lookFeet = 79,
lookAddons = 1,
lookMount = 0,
}

Expand All @@ -23,8 +23,8 @@ monster.Bestiary = {
CharmsPoints = 50,
Stars = 4,
Occurrence = 0,
Locations = "Pits of Inferno (Apocalypse's Throne Room), The Inquisition Quest \z
(The Shadow Nexus, Battlefield), Vengoth, Fury Dungeon, Oramond Fury Dungeon, The Extension Site.",
Locations = "Pits of Inferno (Apocalypse's Throne Room), The Inquisition Quest (The Shadow Nexus, Battlefield), \z
Vengoth, Fury Dungeon, Oramond Fury Dungeon, The Extension Site, Grounds of Destruction and Halls of Ascension.",
}

monster.health = 4100
Expand All @@ -50,7 +50,7 @@ monster.flags = {
convinceable = false,
pushable = false,
rewardBoss = false,
illusionable = true,
illusionable = false,
canPushItems = true,
canPushCreatures = true,
staticAttackChance = 70,
Expand All @@ -59,9 +59,8 @@ monster.flags = {
healthHidden = false,
isBlockable = false,
canWalkOnEnergy = false,
canWalkOnFire = false,
canWalkOnFire = true,
canWalkOnPoison = false,
pet = false,
}

monster.light = {
Expand All @@ -80,40 +79,41 @@ monster.voices = {

monster.loot = {
{ id = 3007, chance = 410 }, -- crystal ring
{ id = 3031, chance = 30000, maxCount = 100 }, -- gold coin
{ id = 3031, chance = 30000, maxCount = 100 }, -- gold coin
{ id = 3031, chance = 38000, maxCount = 69 }, -- gold coin
{ id = 3035, chance = 2800, maxCount = 4 }, -- platinum coin
{ id = 3065, chance = 20000 }, -- terra rod
{ id = 3364, chance = 130 }, -- golden legs
{ id = 3554, chance = 790 }, -- steel boots
{ id = 5021, chance = 1500, maxCount = 4 }, -- orichalcum pearl
{ id = 5911, chance = 4000 }, -- red piece of cloth
{ id = 5944, chance = 21500 }, -- soul orb
{ id = 5944, chance = 50 }, -- soul orb
{ name = "gold coin", chance = 30000, maxCount = 100 },
{ name = "gold coin", chance = 30000, maxCount = 100 },
{ name = "gold coin", chance = 38000, maxCount = 69 },
{ name = "platinum coin", chance = 2800, maxCount = 4 },
{ name = "terra rod", chance = 20000 },
{ name = "golden legs", chance = 130 },
{ name = "steel boots", chance = 790 },
{ name = "orichalcum pearl", chance = 1500, maxCount = 4 },
{ name = "red piece of cloth", chance = 4000 },
{ name = "soul orb", chance = 21500 },
{ name = "soul orb", chance = 50 },
{ id = 6300, chance = 60 }, -- death ring
{ id = 6499, chance = 22500 }, -- demonic essence
{ id = 6558, chance = 35000, maxCount = 3 }, -- concentrated demonic blood
{ id = 7404, chance = 660 }, -- assassin dagger
{ id = 7456, chance = 2000 }, -- noble axe
{ id = 239, chance = 10500 }, -- great health potion
{ id = 8016, chance = 29280, maxCount = 4 }, -- jalapeno pepper
{ name = "demonic essence", chance = 22500 },
{ name = "flask of demonic blood", chance = 35000, maxCount = 3 },
{ name = "assassin dagger", chance = 660 },
{ name = "noble axe", chance = 2000 },
{ name = "great health potion", chance = 10500 },
{ name = "jalapeno pepper", chance = 29280, maxCount = 4 },
}

monster.attacks = {
{ name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -510 },
{ name = "combat", interval = 2000, chance = 10, type = COMBAT_FIREDAMAGE, minDamage = -200, maxDamage = -300, length = 8, spread = 3, effect = CONST_ME_EXPLOSIONAREA, target = false },
{ name = "combat", interval = 2000, chance = 5, type = COMBAT_DEATHDAMAGE, minDamage = -120, maxDamage = -700, length = 8, spread = 3, target = false },
{ name = "combat", interval = 2000, chance = 10, type = COMBAT_DEATHDAMAGE, minDamage = -120, maxDamage = -300, radius = 4, target = false },
-- {name ="fury skill reducer", interval = 2000, chance = 5, target = false},
{ name = "combat", interval = 2000, chance = 5, type = COMBAT_DEATHDAMAGE, minDamage = -120, maxDamage = -700, length = 8, spread = 3, effect = CONST_ME_DRAWBLOOD, target = false },
{ name = "combat", interval = 2000, chance = 10, type = COMBAT_DEATHDAMAGE, minDamage = -120, maxDamage = -300, radius = 4, effect = CONST_ME_DRAWBLOOD, target = false },
{ name = "fury skill reducer", interval = 2000, chance = 5, target = false },
{ name = "combat", interval = 2000, chance = 10, type = COMBAT_LIFEDRAIN, minDamage = -120, maxDamage = -300, radius = 3, effect = CONST_ME_HITAREA, target = false },
{ name = "combat", interval = 2000, chance = 10, type = COMBAT_DEATHDAMAGE, minDamage = -125, maxDamage = -250, range = 7, shootEffect = CONST_ANI_SUDDENDEATH, effect = CONST_ME_SMALLCLOUDS, target = false },
{ name = "speed", interval = 2000, chance = 15, speedChange = -100, range = 7, shootEffect = CONST_ANI_SUDDENDEATH, effect = CONST_ME_SMALLCLOUDS, target = false, duration = 30000 },
{ name = "speed", interval = 2000, chance = 15, speedChange = -800, range = 7, shootEffect = CONST_ANI_SUDDENDEATH, effect = CONST_ME_SMALLCLOUDS, target = false, duration = 30000 },
}

monster.defenses = {
defense = 20,
armor = 20,
armor = 35,
mitigation = 1.32,
{ name = "speed", interval = 2000, chance = 15, speedChange = 800, effect = CONST_ME_MAGIC_RED, target = false, duration = 5000 },
}

Expand Down
4 changes: 2 additions & 2 deletions data-canary/monster/familiars/sorcerer_familiar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ monster.voices = {
monster.loot = {}

monster.attacks = {
{ name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -200 },
{ name = "combat", interval = 2000, chance = 25, type = COMBAT_LIFEDRAIN, minDamage = -90, maxDamage = -150, length = 2, spread = 0, target = false },
{ name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -280 },
{ name = "combat", interval = 2000, chance = 25, type = COMBAT_LIFEDRAIN, minDamage = -90, maxDamage = -150, length = 2, spread = 0, effect = CONST_ME_MAGIC_RED, target = false },
{ name = "combat", interval = 2000, chance = 25, type = COMBAT_ENERGYDAMAGE, minDamage = -190, maxDamage = -210, length = 2, spread = 0, effect = CONST_ME_ENERGYHIT, target = false },
{ name = "summon challenge", interval = 2000, chance = 40, target = false },
}
Expand Down
64 changes: 32 additions & 32 deletions data-canary/monster/magicals/frazzlemaw.lua
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ monster.flags = {
canWalkOnEnergy = true,
canWalkOnFire = true,
canWalkOnPoison = true,
pet = false,
}

monster.light = {
Expand All @@ -74,71 +73,72 @@ monster.light = {
monster.voices = {
interval = 5000,
chance = 10,
{ text = "Mwaaaahnducate youuuuuu *gurgle*, mwaaah!", yell = false },
{ text = "Mwaaahgod! Overmwaaaaah! *gurgle*", yell = false },
{ text = "MMMWAHMWAHMWAHMWAAAAH!", yell = false },
{ text = "Mwaaaahnducate youuuuuu *gurgle*, mwaaah!", yell = false },
{ text = "MMMWAHMWAHMWAHMWAAAAH!", yell = true },
{ text = "Mmmwhamwhamwhah, mwaaah!", yell = false },
}

monster.loot = {
{ id = 3031, chance = 100000, maxCount = 100 }, -- gold coin
{ id = 3035, chance = 100000, maxCount = 7 }, -- platinum coin
{ id = 3104, chance = 9500 }, -- banana skin
{ id = 3110, chance = 10400 }, -- piece of iron
{ id = 3111, chance = 10000 }, -- fishbone
{ name = "gold coin", chance = 100000, maxCount = 100 },
{ name = "platinum coin", chance = 100000, maxCount = 7 },
{ name = "banana skin", chance = 9500 },
{ name = "piece of iron", chance = 10400 },
{ name = "fishbone", chance = 10000 },
{ id = 3114, chance = 12680 }, -- skull
{ id = 3115, chance = 10000 }, -- bone
{ id = 3116, chance = 5500 }, -- big bone
{ id = 3265, chance = 3200 }, -- two handed sword
{ name = "two handed sword", chance = 3200 },
{ id = 3578, chance = 6750, maxCount = 3 }, -- fish
{ id = 3582, chance = 6000, maxCount = 2 }, -- ham
{ id = 5880, chance = 3000 }, -- iron ore
{ id = 5895, chance = 4700 }, -- fish fin
{ id = 5925, chance = 5000 }, -- hardened bone
{ name = "ham", chance = 6000, maxCount = 2 },
{ name = "iron ore", chance = 3000 },
{ name = "fish fin", chance = 4700 },
{ name = "hardened bone", chance = 5000 },
{ id = 5951, chance = 10800 }, -- fish tail
{ id = 7404, chance = 1000 }, -- assassin dagger
{ id = 7407, chance = 2240 }, -- haunted blade
{ id = 7418, chance = 1100 }, -- nightmare blade
{ id = 238, chance = 15000, maxCount = 3 }, -- great mana potion
{ id = 239, chance = 15000, maxCount = 2 }, -- great health potion
{ id = 9058, chance = 2300 }, -- gold ingot
{ id = 10389, chance = 1460 }, -- sai
{ id = 16120, chance = 3000 }, -- violet crystal shard
{ id = 16123, chance = 16000 }, -- brown crystal splinter
{ id = 16126, chance = 7600 }, -- red crystal fragment
{ name = "assassin dagger", chance = 1000 },
{ name = "haunted blade", chance = 2240 },
{ name = "nightmare blade", chance = 1100 },
{ name = "great mana potion", chance = 15000, maxCount = 3 },
{ name = "great health potion", chance = 15000, maxCount = 2 },
{ name = "gold ingot", chance = 2300 },
{ name = "sai", chance = 1460 },
{ name = "violet crystal shard", chance = 3000 },
{ name = "brown crystal splinter", chance = 16000 },
{ name = "red crystal fragment", chance = 7600 },
{ id = 16279, chance = 10000 }, -- crystal rubbish
{ id = 20062, chance = 450 }, -- cluster of solace
{ id = 20198, chance = 18760 }, -- frazzle tongue
{ id = 20199, chance = 16000 }, -- frazzle skin
{ name = "cluster of solace", chance = 4450 },
{ name = "frazzle tongue", chance = 18760 },
{ name = "frazzle skin", chance = 16000 },
}

monster.attacks = {
{ name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -400 },
-- bleed
{ name = "condition", type = CONDITION_BLEEDING, interval = 2000, chance = 10, minDamage = -300, maxDamage = -400, radius = 3, target = false },
{ name = "combat", interval = 2000, chance = 10, type = COMBAT_PHYSICALDAMAGE, minDamage = 0, maxDamage = -700, length = 5, spread = 3, effect = CONST_ME_EXPLOSIONAREA, target = false },
{ name = "condition", type = CONDITION_BLEEDING, interval = 2000, chance = 10, minDamage = -300, maxDamage = -400, radius = 3, effect = CONST_ME_DRAWBLOOD, target = false },
{ name = "combat", interval = 2000, chance = 10, type = COMBAT_LIFEDRAIN, minDamage = 0, maxDamage = -700, length = 5, spread = 0, effect = CONST_ME_EXPLOSIONAREA, target = false },
{ name = "combat", interval = 2000, chance = 15, type = COMBAT_PHYSICALDAMAGE, minDamage = 0, maxDamage = -400, radius = 2, shootEffect = CONST_ANI_LARGEROCK, effect = CONST_ME_STONES, target = true },
{ name = "speed", interval = 2000, chance = 15, speedChange = -600, radius = 5, effect = CONST_ME_MAGIC_RED, target = false, duration = 15000 },
{ name = "combat", interval = 2000, chance = 10, type = COMBAT_MANADRAIN, minDamage = -80, maxDamage = -150, radius = 4, effect = CONST_ME_MAGIC_RED, target = false },
}

monster.defenses = {
defense = 30,
armor = 30,
armor = 74,
mitigation = 2.31,
{ name = "combat", interval = 2000, chance = 15, type = COMBAT_HEALING, minDamage = 250, maxDamage = 425, effect = CONST_ME_HITBYPOISON, target = false },
}

monster.elements = {
{ type = COMBAT_PHYSICALDAMAGE, percent = 10 },
{ type = COMBAT_PHYSICALDAMAGE, percent = 5 },
{ type = COMBAT_ENERGYDAMAGE, percent = 15 },
{ type = COMBAT_EARTHDAMAGE, percent = 20 },
{ type = COMBAT_FIREDAMAGE, percent = 10 },
{ type = COMBAT_LIFEDRAIN, percent = 0 },
{ type = COMBAT_MANADRAIN, percent = 0 },
{ type = COMBAT_DROWNDAMAGE, percent = 0 },
{ type = COMBAT_ICEDAMAGE, percent = 5 },
{ type = COMBAT_HOLYDAMAGE, percent = -10 },
{ type = COMBAT_DEATHDAMAGE, percent = 15 },
{ type = COMBAT_HOLYDAMAGE, percent = -5 },
{ type = COMBAT_DEATHDAMAGE, percent = 10 },
}

monster.immunities = {
Expand Down
17 changes: 0 additions & 17 deletions data-canary/scripts/movements/noxious_Claw.lua

This file was deleted.

15 changes: 0 additions & 15 deletions data-otservbr-global/scripts/actions/tools/noxious_claw.lua

This file was deleted.

17 changes: 0 additions & 17 deletions data-otservbr-global/scripts/movements/others/noxious_claw.lua

This file was deleted.

Loading

0 comments on commit 1d8c82f

Please sign in to comment.