~armagetronad-ap/armagetronad/BattleMania

« back to all changes in this revision

Viewing changes to src/special/exp.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:
124
124
        $attacks_forgot_msg = "0xffdd00".$player." 0xff9999lost ";
125
125
        foreach ($attacks_forgot as $key => $attack)
126
126
        {
127
 
            if (isset($attack) && !is_null($attack) && $attack instanceof Attack)
 
127
            if (isset($attack) && $attack instanceof Attack)
128
128
            {
129
129
                if (($key + 1) == count($attacks_forgot))
130
130
                    $attacks_forgot_msg .= "0x55ccff".$attack;
195
195
        $attacks_learnt_msg = "0xff77ff".$player." 0xf7f700mastered ";
196
196
        foreach ($attacks_learnt as $key => $attack)
197
197
        {
198
 
            if (isset($attack) && !is_null($attack) && $attack instanceof Attack)
 
198
            if (isset($attack) && $attack instanceof Attack)
199
199
            {
200
200
                if (($key + 1) == count($attacks_learnt))
201
201
                    $attacks_learnt_msg .= "0x77ff99".$attack;