ldd-CC/CCBN/ccbn-data/chipdata/hicannon

24 lines
571 B
Plaintext

local stage, players, objects, projectiles, act, images = ...
return {
info = {
name = "HiCannon",
description = "Fires a better shot forwards!",
cooldown = {
shoot = 6,
move = 4
}
},
logic = function(info)
info.x = info.x + (2 / stage.panelWidth) * info.direction
act.stage.setDamage(info.x, info.y, 60, info.owner, 1)
local struckPlayer, struckObject = act.projectile.checkProjectileCollisions(info)
if info.frame > 50 or struckPlayer or struckObject then
return false
else
return true, {{images.cannon, info.x, info.y}}
end
end
}