You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ($owner == -2) { // any player
$owner_condition = "owner != 0 AND";
} else if ($owner == -3) { // any opponent
$opponent_ids = self::getActiveOpponentIds(self::getActivePlayerId());
$owner_condition = self::format("owner IN ({owners}) AND", array('owners' => join(',', $opponent_ids)));
} else if ($owner == -4) { // any other player
$owner_condition = self::format("owner != 0 AND owner != {player_id} AND", array('player_id' => self::getActivePlayerId()));
} else {
$owner_condition = self::format("owner = {owner} AND", array('owner' => $owner));
}
The text was updated successfully, but these errors were encountered:
micahstairs
added
tech debt
Something that doesn't necessarily need to be done now, but it may make future changes harder to do.
backend
.php or .sql
labels
Oct 1, 2023
I'd love a Players class with constants like ALL, OPPONENTS, OTHERS, etc.
It would allow us to simplify code like:
to
It would also help us clean up code like:
The text was updated successfully, but these errors were encountered: