Changes

m
16 revisions imported
Line 5: Line 5:  
local Equipment = require('Module:Equipment')
 
local Equipment = require('Module:Equipment')
 
local Formatting = require('Module:Formatting')
 
local Formatting = require('Module:Formatting')
local format = require('Module:StringInterpolation').format
+
local format = require('Module:Core').format
    
local EventComp = {
 
local EventComp = {
Line 58: Line 58:  
     local types_allowed = { [6] = true, [7] = true, [8] = true, [11] = true }
 
     local types_allowed = { [6] = true, [7] = true, [8] = true, [11] = true }
 
     if types_allowed[equip:type()] and equip:aa() then
 
     if types_allowed[equip:type()] and equip:aa() then
         self._fighter_power = self._fighter_power + math.floor(math.sqrt(planes) * equip:aa())
+
         self._fighter_power = self._fighter_power + math.floor(math.sqrt(planes or 0) * equip:aa())
 
     end
 
     end
 
      
 
      
Bots, gkautomate
12,557

edits