1
0
mirror of https://github.com/LDDestroier/CC/ synced 2024-11-14 13:54:52 +00:00
ldd-CC/CCBN/ccbn-data/chipdata/hicannon

25 lines
572 B
Plaintext
Raw Normal View History

2019-03-13 04:15:41 +00:00
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)
2019-03-13 21:05:50 +00:00
info.x = info.x + (4 / stage.panelWidth) * info.direction
2019-03-13 04:15:41 +00:00
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
2019-03-13 21:05:50 +00:00
}