21 lines
467 B
Lua
21 lines
467 B
Lua
|
Class = require 'hump/class'
|
||
|
require 'powerupmode'
|
||
|
require 'settings'
|
||
|
|
||
|
ChaingunMode = Class{
|
||
|
__include = PowerUpMode,
|
||
|
|
||
|
init = function(self)
|
||
|
PowerUpMode.init(self, 10)
|
||
|
end;
|
||
|
|
||
|
activate = function(self, plane)
|
||
|
PowerUpMode.activate(self, plane)
|
||
|
plane.machinegun:setType("chaingun")
|
||
|
end;
|
||
|
|
||
|
deactivate = function(self, plane)
|
||
|
PowerUpMode.deactivate(self, plane)
|
||
|
plane.machinegun:setType("vickers77")
|
||
|
end;
|
||
|
}
|