Много рефактора
This commit is contained in:
11
_incl_data/class/Battle/Helper.php
Normal file
11
_incl_data/class/Battle/Helper.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace Battle;
|
||||
|
||||
class Helper
|
||||
{
|
||||
public static function getChanse(int $percent): bool
|
||||
{
|
||||
return mt_rand(0, 100) <= $percent;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user