Code: Select all
defineObject{
name = "taw_small_sword_d_rapier",
baseObject = "base_item",
components = {
{
class = "Model",
model = "assets/models/items/rapier.fbx",
},
{
class = "Item",
uiName = "Rapier",
gfxIndex = 338,
gfxIndexPowerAttack = 429,
impactSound = "impact_blade",
weight = 4.5,
secondaryAction = "hardthrust",
description = "A lightweight, thin-bladed favourite of pirates and highwaymen the world over.",
traits = { "dagger" },
},
{
class = "MeleeAttack",
attackPower = 16,
pierce = 10,
cooldown = 4.0,
swipe = "thrust",
attackSound = "swipe_light",
requirements = { "lgt_weapons", 2 },
},
{
class = "MeleeAttack",
name = "hardthrust",
uiName = "Thrust",
energyCost = 15,
pierce = 100,
attackPower = 16,
buildup = 2,
cooldown = 4,
swipe = "thrust",
attackSound = "swipe",
requirements = { "lgt_weapons", 2 },
gameEffect = "Buildup: 2.0 seconds A strong attack that deals increased damage and negates armor entirely.",
},
},
tags = { "weapon" },
}
Is there a way to add Strength or Dexterity to the attack power for class = "MeleeAttack", or even "RangedAttack" or "ThrowAttack"?