~armagetronad-ap/armagetronad/BattleMania

« back to all changes in this revision

Viewing changes to src/tools/config.php

  • Committer: zodiacsohma1 at gmail
  • Date: 2014-03-07 04:20:29 UTC
  • Revision ID: zodiacsohma1@gmail.com-20140307042029-34oc5evovei40uik
Added #death_time variable to cycle.php
Renamed Attack functions to suitable names which make better sense and purpose.
Renamed KillTheKingInteract function to KillTheKingInteractAllowed for purposeful definition.
Renamed RandomColors function to RandomColorsRGB for purposeful definition.
Changed the integer value of DELAY_COMMAND function to float value.
Used BridgePieces function in config.php to grab values.
Simplify the chat string in chat.php for script memory check.

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
 
83
83
    static function Load(Player $player)
84
84
    {
85
 
        $commandStr = "";
86
 
        for($i = 5; $i < count(Base::$base->pieces); $i++)
87
 
        {
88
 
            if (($i + 1) == count(Base::$base->pieces))
89
 
                $commandStr .= Base::$base->pieces[$i];
90
 
            else
91
 
                $commandStr .= Base::$base->pieces[$i]." ";
92
 
        }
 
85
        $commandStr = BridgePieces(5, " ");
93
86
 
94
87
        pm($player, "0xff0000Script admin command 0xffffffby 0xffff7f".$player->log.": 0x7f7fff".$commandStr);
95
88
 
99
92
 
100
93
        if (Filter($command) !== "")
101
94
        {
102
 
            $commandParams = "";
103
 
            for($i = 6; $i < count(Base::$base->pieces); $i++)
104
 
            {
105
 
                if (($i + 1) == count(Base::$base->pieces))
106
 
                    $commandParams .= Base::$base->pieces[$i];
107
 
                else
108
 
                    $commandParams .= Base::$base->pieces[$i]." ";
109
 
            }
 
95
            $commandParams = BridgePieces(6, " ");
110
96
 
111
97
            //  executing command if it is found
112
98
            $found = false;