mirror of
https://github.com/LDDestroier/CC/
synced 2024-12-15 12:40:29 +00:00
26 lines
693 B
Plaintext
26 lines
693 B
Plaintext
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
|
|
|
|
act.stage.setDamage(info.x, info.y, 10, info.owner, 1, true)
|
|
|
|
local struckPlayer, struckObject = act.projectile.checkProjectileCollisions(info)
|
|
|
|
if info.frame > 50 or struckPlayer or struckObject then
|
|
act.stage.setDamage(info.x + info.direction, info.y, 10, info.owner, 1, true)
|
|
return false
|
|
else
|
|
return true, {{images.cannon, info.x, info.y}}
|
|
end
|
|
end
|
|
}
|