Skip to content

Commit 4796832

Browse files
committed
fix: data-canary errors and warnings
1 parent 65c58b0 commit 4796832

File tree

6 files changed

+65
-45
lines changed

6 files changed

+65
-45
lines changed

data-canary/monster/magicals/guzzlemaw.lua

+35-36
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ monster.Bestiary = {
2323
CharmsPoints = 50,
2424
Stars = 4,
2525
Occurrence = 0,
26-
Locations = "Guzzlemaw Valley, and a single spawn in a tower in Upper Roshamuul \z
27-
(south of the Depot and west of the entrance to Roshamuul Prison).",
26+
Locations = "Guzzlemaw Valley, and a single spawn in a tower in Upper Roshamuul (south of the Depot and west of the entrance to Roshamuul Prison).",
2827
}
2928

3029
monster.health = 6400
@@ -64,7 +63,6 @@ monster.flags = {
6463
canWalkOnEnergy = true,
6564
canWalkOnFire = true,
6665
canWalkOnPoison = true,
67-
pet = false,
6866
}
6967

7068
monster.light = {
@@ -78,63 +76,64 @@ monster.voices = {
7876
}
7977

8078
monster.loot = {
81-
{ id = 3031, chance = 100000, maxCount = 100 }, -- gold coin
82-
{ id = 3035, chance = 100000, maxCount = 7 }, -- platinum coin
83-
{ id = 3104, chance = 10700 }, -- banana skin
84-
{ id = 3110, chance = 10500 }, -- piece of iron
85-
{ id = 3111, chance = 9500 }, -- fishbone
79+
{ name = "gold coin", chance = 100000, maxCount = 100 },
80+
{ name = "platinum coin", chance = 100000, maxCount = 7 },
81+
{ name = "banana skin", chance = 10700 },
82+
{ name = "piece of iron", chance = 10500 },
83+
{ name = "fishbone", chance = 9500 },
8684
{ id = 3114, chance = 10400 }, -- skull
8785
{ id = 3115, chance = 9200 }, -- bone
8886
{ id = 3116, chance = 4500 }, -- big bone
89-
{ id = 3265, chance = 2700 }, -- two handed sword
87+
{ name = "two handed sword", chance = 2700 },
9088
{ id = 3578, chance = 7000, maxCount = 3 }, -- fish
91-
{ id = 3582, chance = 10000 }, -- ham
92-
{ id = 5880, chance = 3000 }, -- iron ore
93-
{ id = 5895, chance = 5000 }, -- fish fin
94-
{ id = 5925, chance = 5700 }, -- hardened bone
89+
{ name = "ham", chance = 10000 },
90+
{ name = "iron ore", chance = 3000 },
91+
{ name = "fish fin", chance = 5000 },
92+
{ name = "hardened bone", chance = 5700 },
9593
{ id = 5951, chance = 9400 }, -- fish tail
96-
{ id = 7404, chance = 1000 }, -- assassin dagger
97-
{ id = 7407, chance = 2000 }, -- haunted blade
98-
{ id = 7418, chance = 380 }, -- nightmare blade
99-
{ id = 238, chance = 17000, maxCount = 3 }, -- great mana potion
100-
{ id = 239, chance = 18500, maxCount = 2 }, -- great health potion
101-
{ id = 10389, chance = 1200 }, -- sai
102-
{ id = 16120, chance = 3000 }, -- violet crystal shard
103-
{ id = 16123, chance = 12000, maxCount = 2 }, -- brown crystal splinter
104-
{ id = 16126, chance = 7600 }, -- red crystal fragment
94+
{ name = "assassin dagger", chance = 1000 },
95+
{ name = "haunted blade", chance = 2000 },
96+
{ name = "nightmare blade", chance = 380 },
97+
{ name = "great mana potion", chance = 17000, maxCount = 3 },
98+
{ name = "great health potion", chance = 18500, maxCount = 2 },
99+
{ name = "sai", chance = 1200 },
100+
{ name = "violet crystal shard", chance = 3000 },
101+
{ name = "brown crystal splinter", chance = 12000, maxCount = 2 },
102+
{ name = "red crystal fragment", chance = 7600 },
105103
{ id = 16279, chance = 12000 }, -- crystal rubbish
106-
{ id = 20062, chance = 920 }, -- cluster of solace
107-
{ id = 20198, chance = 15000 }, -- frazzle tongue
108-
{ id = 20199, chance = 14000 }, -- frazzle skin
104+
{ name = "cluster of solace", chance = 8920 },
105+
{ name = "frazzle tongue", chance = 15000 },
106+
{ name = "frazzle skin", chance = 14000 },
109107
}
110108

111109
monster.attacks = {
112110
{ name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -499 },
113111
-- bleed
114-
{ name = "condition", type = CONDITION_BLEEDING, interval = 2000, chance = 10, minDamage = -500, maxDamage = -1000, radius = 3, target = false },
115-
{ name = "combat", interval = 2000, chance = 10, type = COMBAT_PHYSICALDAMAGE, minDamage = 0, maxDamage = -900, length = 8, spread = 3, effect = CONST_ME_EXPLOSIONAREA, target = false },
112+
{ name = "condition", type = CONDITION_BLEEDING, interval = 2000, chance = 10, minDamage = -500, maxDamage = -1000, radius = 3, effect = CONST_ME_DRAWBLOOD, target = false },
113+
{ name = "combat", interval = 2000, chance = 10, type = COMBAT_LIFEDRAIN, minDamage = 0, maxDamage = -900, length = 8, spread = 0, effect = CONST_ME_EXPLOSIONAREA, target = false },
116114
{ name = "combat", interval = 2000, chance = 20, type = COMBAT_PHYSICALDAMAGE, minDamage = 0, maxDamage = -500, radius = 2, shootEffect = CONST_ANI_LARGEROCK, effect = CONST_ME_STONES, target = true },
117-
{ name = "speed", interval = 2000, chance = 15, speedChange = -100, radius = 6, effect = CONST_ME_MAGIC_RED, target = false, duration = 15000 },
118-
{ name = "combat", interval = 2000, chance = 10, type = COMBAT_LIFEDRAIN, minDamage = 0, maxDamage = -800, length = 8, spread = 3, effect = CONST_ME_MAGIC_RED, target = false },
115+
{ name = "speed", interval = 2000, chance = 15, speedChange = -800, radius = 6, effect = CONST_ME_MAGIC_RED, target = false, duration = 15000 },
116+
{ name = "combat", interval = 2000, chance = 10, type = COMBAT_LIFEDRAIN, minDamage = 0, maxDamage = -800, length = 8, spread = 0, effect = CONST_ME_MAGIC_RED, target = false },
119117
}
120118

121119
monster.defenses = {
122120
defense = 50,
123-
armor = 50,
121+
armor = 74,
122+
mitigation = 2.31,
124123
{ name = "combat", interval = 2000, chance = 20, type = COMBAT_HEALING, minDamage = 250, maxDamage = 425, effect = CONST_ME_HITBYPOISON, target = false },
125124
}
126125

127126
monster.elements = {
128-
{ type = COMBAT_PHYSICALDAMAGE, percent = 10 },
129-
{ type = COMBAT_ENERGYDAMAGE, percent = 5 },
130-
{ type = COMBAT_EARTHDAMAGE, percent = 15 },
131-
{ type = COMBAT_FIREDAMAGE, percent = 5 },
127+
{ type = COMBAT_PHYSICALDAMAGE, percent = 5 },
128+
{ type = COMBAT_ENERGYDAMAGE, percent = 15 },
129+
{ type = COMBAT_EARTHDAMAGE, percent = 20 },
130+
{ type = COMBAT_FIREDAMAGE, percent = 10 },
132131
{ type = COMBAT_LIFEDRAIN, percent = 0 },
133132
{ type = COMBAT_MANADRAIN, percent = 0 },
134133
{ type = COMBAT_DROWNDAMAGE, percent = 0 },
135134
{ type = COMBAT_ICEDAMAGE, percent = 5 },
136-
{ type = COMBAT_HOLYDAMAGE, percent = 0 },
137-
{ type = COMBAT_DEATHDAMAGE, percent = 5 },
135+
{ type = COMBAT_HOLYDAMAGE, percent = -5 },
136+
{ type = COMBAT_DEATHDAMAGE, percent = 10 },
138137
}
139138

140139
monster.immunities = {

data-canary/scripts/actions/tools/kitchen_knife.lua

-8
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
local combat = {}
2+
3+
for i = 65, 80 do
4+
combat[i] = Combat()
5+
combat[i]:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_SOUND_YELLOW)
6+
7+
local condition = Condition(CONDITION_ATTRIBUTES)
8+
condition:setParameter(CONDITION_PARAM_TICKS, 5000)
9+
condition:setParameter(CONDITION_PARAM_SKILL_DEFENSEPERCENT, i)
10+
11+
local area = createCombatArea(AREA_CIRCLE3X3)
12+
combat[i]:setArea(area)
13+
combat[i]:addCondition(condition)
14+
end
15+
16+
local spell = Spell("instant")
17+
18+
function spell.onCastSpell(creature, var)
19+
return combat[math.random(65, 80)]:execute(creature, var)
20+
end
21+
22+
spell:name("fury skill reducer")
23+
spell:words("###2")
24+
spell:isAggressive(true)
25+
spell:blockWalls(true)
26+
spell:needLearn(true)
27+
spell:register()

data-canary/world/canary-house.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0"?>
22
<houses>
3-
<house name="NPC" houseid="1" entryx="19977" entryy="19988" entryz="7" rent="0" townid="3" size="15" />
3+
<house name="NPC" houseid="1" entryx="19977" entryy="19988" entryz="7" rent="0" townid="3" size="17" clientid="0" beds="0" />
44
</houses>

data-canary/world/canary-zones.xml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0"?>
2+
<zones />

data-canary/world/canary.otbm

19 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)