2019-03-13 04:15:41 +00:00
|
|
|
local stage, players, objects, projectiles, act, images = ...
|
|
|
|
return {
|
|
|
|
info = {
|
|
|
|
name = "Vulcan_Internal",
|
|
|
|
description = "Internal component of Vulcan1 through 3 and SuperVulcan.",
|
|
|
|
cooldown = {
|
|
|
|
shoot = 6,
|
|
|
|
move = 4
|
|
|
|
}
|
|
|
|
},
|
|
|
|
logic = function(info)
|
|
|
|
info.x = info.x + (3 / stage.panelWidth) * info.direction
|
|
|
|
|
2019-03-13 17:56:51 +00:00
|
|
|
act.stage.setDamage(info.x, info.y, 10, info.owner, 1, info.noFlinch)
|
2019-03-13 04:15:41 +00:00
|
|
|
|
|
|
|
local struckPlayer, struckObject = act.projectile.checkProjectileCollisions(info)
|
|
|
|
|
|
|
|
if info.frame > 50 or struckPlayer or struckObject then
|
2019-03-13 17:56:51 +00:00
|
|
|
act.stage.setDamage(info.x + info.direction, info.y, 10, info.owner, 1, info.noFlinch)
|
2019-03-13 04:15:41 +00:00
|
|
|
return false
|
|
|
|
else
|
|
|
|
return true, {{images.cannon, info.x, info.y}}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
}
|