Skip to content
Snippets Groups Projects
Commit 54900f33 authored by dg's avatar dg
Browse files

melee sound

git-svn-id: http://svn.net-core.org/repos/t-engine4@550 51575b47-30f0-44d4-a5cc-537603b46e54
parent 4dccdb68
No related branches found
No related tags found
No related merge requests found
Showing
with 21 additions and 21 deletions
......@@ -276,7 +276,8 @@ function _M:TextSizeCategory()
elseif self.size_category == 2 then sizecat = "small"
elseif self.size_category == 3 then sizecat = "medium"
elseif self.size_category == 4 then sizecat = "big"
elseif self.size_category >= 5 then sizecat = "huge"
elseif self.size_category == 5 then sizecat = "huge"
elseif self.size_category >= 6 then sizecat = "gargantuan"
end
return sizecat
end
......
......@@ -203,8 +203,8 @@ function _M:archeryShoot(damtype, mult, on_hit, tg, params)
end
end)
if ret.hitted and not sound then sound = realweapon.sound
elseif not ret.hitted and not sound_miss then sound_miss = realweapon.sound_miss end
if ret.hitted and not sound then sound = weapon.sound
elseif not ret.hitted and not sound_miss then sound_miss = weapon.sound_miss end
print("[SHOOT] speed", ret.speed or 1, "=>", game.energy_to_act * (ret.speed or 1))
self:useEnergy(game.energy_to_act * (ret.speed or 1))
......
......@@ -24,10 +24,9 @@ newEntity{
type = "weapon", subtype="battleaxe",
add_name = " (#COMBAT#)",
display = "/", color=colors.SLATE,
sound = "actions/melee", sound_miss = "actions/melee_miss",
encumber = 3,
rarity = 5,
combat = { talented = "axe", damrange = 1.5 },
combat = { talented = "axe", damrange = 1.5, sound = "actions/melee", sound_miss = "actions/melee_miss", },
desc = [[Massive two-handed battleaxes.]],
twohanded = true,
egos = "/data/general/objects/egos/weapon.lua", egos_chance = resolvers.mbonus(40, 5),
......
......@@ -24,10 +24,9 @@ newEntity{
type = "weapon", subtype="greatmaul",
add_name = " (#COMBAT#)",
display = "\\", color=colors.SLATE,
sound = "actions/melee", sound_miss = "actions/melee_miss",
encumber = 5,
rarity = 5,
combat = { talented = "mace", damrange = 1.5, physspeed=1.2 },
combat = { talented = "mace", damrange = 1.5, physspeed=1.2, sound = "actions/melee", sound_miss = "actions/melee_miss", },
desc = [[Massive two-handed maul.]],
twohanded = true,
egos = "/data/general/objects/egos/weapon.lua", egos_chance = resolvers.mbonus(40, 5),
......
......@@ -24,10 +24,9 @@ newEntity{
type = "weapon", subtype="greatsword",
add_name = " (#COMBAT#)",
display = "/", color=colors.SLATE,
sound = "actions/melee", sound_miss = "actions/melee_miss",
encumber = 3,
rarity = 5,
combat = { talented = "sword", damrange = 1.6 },
combat = { talented = "sword", damrange = 1.6, sound = "actions/melee", sound_miss = "actions/melee_miss", },
desc = [[Massive two-handed swords.]],
twohanded = true,
egos = "/data/general/objects/egos/weapon.lua", egos_chance = resolvers.mbonus(40, 5),
......
......@@ -23,10 +23,9 @@ newEntity{
type = "weapon", subtype="waraxe",
add_name = " (#COMBAT#)",
display = "/", color=colors.SLATE,
sound = "actions/melee", sound_miss = "actions/melee_miss",
encumber = 3,
rarity = 3,
combat = { talented = "axe", damrange = 1.4},
combat = { talented = "axe", damrange = 1.4, sound = "actions/melee", sound_miss = "actions/melee_miss",},
desc = [[One-handed war axes.]],
egos = "/data/general/objects/egos/weapon.lua", egos_chance = resolvers.mbonus(40, 5),
}
......
......@@ -23,10 +23,9 @@ newEntity{
slot_forbid = "OFFHAND",
type = "weapon", subtype="longbow",
display = "}", color=colors.UMBER,
sound = "actions/arrow", sound_miss = "actions/arrow",
encumber = 4,
rarity = 5,
combat = { talented = "bow", damrange = 1.4},
combat = { talented = "bow", damrange = 1.4, sound = "actions/arrow", sound_miss = "actions/arrow",},
archery = "bow",
desc = [[Longbows are used to shoot arrows at your foes.]],
}
......
......@@ -23,10 +23,9 @@ newEntity{
type = "weapon", subtype="dagger",
add_name = " (#COMBAT#)",
display = "/", color=colors.WHITE,
sound = "actions/melee", sound_miss = "actions/melee_miss",
encumber = 1,
rarity = 5,
combat = { talented = "knife", damrange = 1.3 },
combat = { talented = "knife", damrange = 1.3, sound = "actions/melee", sound_miss = "actions/melee_miss", },
desc = [[Sharp, long, and deadly.]],
egos = "/data/general/objects/egos/weapon.lua", egos_chance = resolvers.mbonus(40, 5),
}
......
......@@ -23,10 +23,9 @@ newEntity{
type = "weapon", subtype="mace",
add_name = " (#COMBAT#)",
display = "/", color=colors.SLATE,
sound = "actions/melee", sound_miss = "actions/melee_miss",
encumber = 3,
rarity = 5,
combat = { talented = "mace", damrange = 1.4},
combat = { talented = "mace", damrange = 1.4, sound = "actions/melee", sound_miss = "actions/melee_miss",},
desc = [[Blunt and deadly.]],
egos = "/data/general/objects/egos/weapon.lua", egos_chance = resolvers.mbonus(40, 5),
}
......
......@@ -22,10 +22,9 @@ newEntity{
slot = "MAINHAND",
type = "weapon", subtype="sling",
display = "}", color=colors.UMBER,
sound = "actions/arrow", sound_miss = "actions/arrow",
encumber = 4,
rarity = 5,
combat = { talented = "sling", },
combat = { talented = "sling", sound = "actions/arrow", sound_miss = "actions/arrow", },
archery = "sling",
desc = [[Slings are used to shoot peebles at your foes.]],
}
......
......@@ -23,10 +23,9 @@ newEntity{
type = "weapon", subtype="longsword",
add_name = " (#COMBAT#)",
display = "/", color=colors.SLATE,
sound = "actions/melee", sound_miss = "actions/melee_miss",
encumber = 3,
rarity = 5,
combat = { talented = "sword", damrange = 1.4},
combat = { talented = "sword", damrange = 1.4, sound = "actions/melee", sound_miss = "actions/melee_miss",},
desc = [[Sharp, long, and deadly.]],
egos = "/data/general/objects/egos/weapon.lua", egos_chance = resolvers.mbonus(40, 5),
}
......
return {
file = "actions/melee.wav",
volume = 30,
}
return {
file = "actions/melee_miss.wav",
volume = 30,
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment