~armagetronad-ap/armagetronad/BattleMania

« back to all changes in this revision

Viewing changes to src/special/energy.php

  • Committer: zodiacsohma1 at gmail
  • Date: 2014-03-02 08:09:55 UTC
  • Revision ID: zodiacsohma1@gmail.com-20140302080955-r5ot6eipfe0nlpww
Simplified all fields and code in all areas for better as they seem to repeat themselves.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
{
27
27
    foreach (Base::$base->RECORDS as $record)
28
28
    {
29
 
        if (isset($record) && !is_null($record) && $record instanceof Record)
 
29
        if (isset($record) && $record instanceof Record)
30
30
        {
31
31
            if ($record->energy->amount < $record->energy->MaxAmount())
32
32
            {