mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-02 09:53:38 +02:00
client/example: Moar debug
This commit is contained in:
parent
04a475efbe
commit
65c02784b5
1 changed files with 3 additions and 1 deletions
|
@ -109,11 +109,13 @@ sub take_action($%) {
|
|||
}
|
||||
|
||||
if ($move[dirindex($dir)] > $move[dirindex($max)] or
|
||||
($move[dirindex($dir)] == $move[dirindex($max)]) and (int rand(2))) {
|
||||
($move[dirindex($dir)] == $move[dirindex($max)] and int rand(2))) {
|
||||
$max = $dir;
|
||||
}
|
||||
}
|
||||
|
||||
print "moves ".join(", ", @move)."\n";
|
||||
|
||||
if ($attack[dirindex($max)]) {
|
||||
print $socket "attack_dir $max->[0] $max->[1]\r\n";
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue