Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into take-screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
Luan Luciano committed Mar 10, 2024
2 parents 6f53578 + 47f25af commit 1471198
Show file tree
Hide file tree
Showing 1,541 changed files with 14,162 additions and 88,555 deletions.
4 changes: 2 additions & 2 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@ AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: MultiLine
BinPackArguments: true
BinPackParameters: true
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: false
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: true
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
Expand All @@ -42,7 +43,6 @@ BraceWrapping:
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: All
BreakBeforeBraces: Attach
BreakBeforeInheritanceComma: false
BreakInheritanceList: BeforeColon
BreakBeforeTernaryOperators: true
Expand Down
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
8 changes: 6 additions & 2 deletions .github/workflows/build-windows-solution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,14 @@ jobs:

- name: Install vcpkg
run: |
$vcpkgJson = Get-Content .\vcpkg.json -Raw | ConvertFrom-Json
$vcpkgCommitId = $vcpkgJson.'builtin-baseline'.Trim()
Write-Host "vcpkg commit ID: $vcpkgCommitId"
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.bat
./vcpkg integrate install
git checkout $vcpkgCommitId
.\bootstrap-vcpkg.bat
.\vcpkg integrate install
- name: Print useful paths
run: |
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -372,12 +372,15 @@ config.lua
config_canary.lua
client_assertions.txt
.env
otservbr.otbm
canary.otbm
otservbr-custom.otbm

# Extensions
*.ini
*.otb
*.exe
*.manifest
*.otbm
*.rar
*-house.xml
*-monster.xml
Expand Down
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,6 @@ other open-source initiatives.
<img src="https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg" alt="JetBrains" width="150" />
</a>

## Project supported by [TNT Cloud](https://tntcloudbr.com.br/)

Thanks for supporting our open-source project with your game cloud hosting services.

<a href="https://tntcloudbr.com.br/">
<img src="https://tntcloudbr.com.br/logo.png" alt="TNT Cloud - Game Hosting" width="300" />
</a>

### Partners

[![Supported by OTServ Brasil](https://raw.githubusercontent.com/otbr/otserv-brasil/main/otbr.png)](https://forums.otserv.com.br)
23 changes: 16 additions & 7 deletions config.lua.dist
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,6 @@ tibiadromeConcoctionTickType = "online" -- "online" | "experience"
onlyPremiumAccount = false

-- Customs
-- NOTE: weatherRain = true, activates weather raining effects
-- NOTE: thunderEffect = true, activates thunder effects
-- NOTE: allConsoleLog = true, show all message logs
-- NOTE: stashMoving = true, stow an container inside your stash
-- NOTE: depotChest, the non-stackable items will be moved to the selected depot chest(I - XVIII).
-- NOTE: autoBank = true, the dropped coins from monsters will be automatically deposited to your bank account.
Expand All @@ -239,9 +236,9 @@ onlyPremiumAccount = false
-- NOTE: teleportPlayerToVocationRoom will enable oressa to teleport player to his/her room vocation
-- NOTE: toggleReceiveReward = true, will enable players to choose one of reward exercise weapon by command !reward
-- NOTE: randomMonsterSpawn = true, will enable monsters from the same spawn to be randomized between them, thus making a variable hunt
weatherRain = false
thunderEffect = false
allConsoleLog = false
-- NOTE: enablePlayerPutItemInAmmoSlot = true, will enable players to put any items on ammo slot, more used in custom shopping system
-- NOTE: startStreakLevel will make a reward streak level for new players who never logged in
-- NOTE: if showLootsInBestiary is true, will cause all loots to be shown in the bestiary even if the player has not reached the required number of kills
stashMoving = false
depotChest = 4
autoLoot = false
Expand All @@ -257,6 +254,9 @@ toggleReceiveReward = false
randomMonsterSpawn = false
lootPouchMaxLimit = 2000
storeInboxMaxLimit = 2000
enablePlayerPutItemInAmmoSlot = false
startStreakLevel = 0
showLootsInBestiary = false

-- Teleport summon
-- Set to true will never remove the summon
Expand All @@ -281,9 +281,11 @@ maxAllowedOnADummy = 1

-- Save interval per time
-- NOTE: toggleSaveInterval: true = enable the save interval, false = disable the save interval
-- NOTE: toggleSaveAsync = true, will enable save async (experimental), not recommended for use in production
-- NOTE: saveIntervalType: "minute", "second" or "hour"
-- NOTE: toggleSaveIntervalCleanMap: true = enable the clean map, false = disable the clean map
-- NOTE: saveIntervalTime: time based on what was set in "saveIntervalType"
toggleSaveAsync = false
toggleSaveInterval = true
saveIntervalType = "hour"
toggleSaveIntervalCleanMap = true
Expand Down Expand Up @@ -419,11 +421,18 @@ multiplierSpeedOnFist = 5
maxSpeedOnFist = 500
disableLegacyRaids = false
disableMonsterArmor = false
combatChainDelay = 50
minElementalResistance = -200
maxElementalResistance = 200
maxDamageReflection = 200

-- Chain system
toggleChainSystem = true
combatChainDelay = 50
combatChainTargets = 5
combatChainSkillFormulaAxe = 0.9
combatChainSkillFormulaClub = 0.7
combatChainSkillFormulaSword = 1.1

-- Global server Save
-- NOTE: globalServerSaveNotifyDuration in minutes
globalServerSaveNotifyMessage = true
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
Loading

0 comments on commit 1471198

Please sign in to comment.