ProductionLib
in package
ProductionLib Class
Tags
Table of Contents
- currentProduction() : int
- currentProduction
- maxProduction() : int
- maxProduction
- maxStorable() : void
- maxStorable
- productionAmount() : int
- productionAmount
Methods
currentProduction()
currentProduction
public
static currentProduction(int $resource, int $max_production) : int
Parameters
- $resource : int
-
Resource amount
- $max_production : int
-
Max production
Return values
int —maxProduction()
maxProduction
public
static maxProduction(int $max_energy, int $energy_used) : int
Parameters
- $max_energy : int
-
Max energy
- $energy_used : int
-
Energy used
Return values
int —maxStorable()
maxStorable
public
static maxStorable(int $storage_level) : void
Parameters
- $storage_level : int
-
Storage level
Return values
void —productionAmount()
productionAmount
public
static productionAmount(int $production, int $boost, int $mult[, bool $is_energy = false ]) : int
Parameters
- $production : int
-
Production amoint
- $boost : int
-
Boost by officiers
- $mult : int
-
Multiplier based on game speed
- $is_energy : bool = false
-
Is energy?