Skip to content

Commit

Permalink
Update monsters.php
Browse files Browse the repository at this point in the history
  • Loading branch information
kamieniarz authored Oct 26, 2023
1 parent da6a05c commit 3e9ecfd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions actions/monsters.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@
}
if (substr($value, 0,5) === "size_") {
$size = ltrim($value, 'size_');
if ( $size == -1 ) { $max_size = 5; } else { $max_size = $size;}
if ( $size == -1 ) { $max_size = 5; }
}
if (substr($value, 0,9) === "max_size_") {
$max_size = ltrim($value, 'max_size');
}
if (substr($value, 0, 4) == "cap_") {
$cap = ltrim($value, 'cap_');
Expand Down Expand Up @@ -174,7 +177,10 @@
}
if (substr($value, 0,5) === "size_") {
$size = ltrim($value, 'size_');
if ( $size == -1 ) { $max_size = 5; } else { $max_size = $size;}
if ( $size == -1 ) { $max_size = 5; }
}
if (substr($value, 0,9) === "max_size_") {
$max_size = ltrim($value, 'max_size');
}
if (substr($value, 0, 4) === "cap_") {
$cap = ltrim($value, 'cap_');
Expand Down

0 comments on commit 3e9ecfd

Please sign in to comment.