Немножко допричесал модерацию, с которой теперь можно иметь дело.
This commit is contained in:
@@ -77,4 +77,10 @@ class Moderation
|
||||
{
|
||||
DBPDO::INIT()->execute('INSERT INTO chat (user_id,msg,type) VALUES (-1,?,?)', [$message, 'sys']);
|
||||
}
|
||||
|
||||
public static function addUserCheck(int $target): bool
|
||||
{
|
||||
self::addEffectStatusToUserLog($target, UserEffects::$effectName[20]);
|
||||
return User::setUserEffect($target, 20, UserEffects::$effectName[20], strtotime('3days'));
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,7 @@ class User
|
||||
protected $info;
|
||||
protected $level = 0;
|
||||
protected $align = 0;
|
||||
protected $clan = 0;
|
||||
protected $clan;
|
||||
protected $money = 0;
|
||||
protected $strength = 0;
|
||||
protected $dexterity = 0;
|
||||
@@ -322,9 +322,9 @@ class User
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
* @return string
|
||||
*/
|
||||
public function getClan(): int
|
||||
public function getClan(): string
|
||||
{
|
||||
return $this->clan;
|
||||
}
|
||||
@@ -332,7 +332,7 @@ class User
|
||||
/**
|
||||
* @param int $clan
|
||||
*/
|
||||
public function setClan(int $clan): void
|
||||
public function setClan(string $clan): void
|
||||
{
|
||||
$this->clan = $clan;
|
||||
}
|
||||
@@ -569,14 +569,6 @@ class User
|
||||
return $this->minDamage;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $minDamage
|
||||
*/
|
||||
public function setMinDamage(int $minDamage): void
|
||||
{
|
||||
$this->minDamage = $minDamage;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
@@ -585,14 +577,6 @@ class User
|
||||
return $this->maxDamage;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $maxDamage
|
||||
*/
|
||||
public function setMaxDamage(int $maxDamage): void
|
||||
{
|
||||
$this->maxDamage = $maxDamage;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
@@ -745,14 +729,6 @@ class User
|
||||
return $this->maxHealth;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param float|int $maxHealth
|
||||
*/
|
||||
public function setMaxHealth($maxHealth): void
|
||||
{
|
||||
$this->maxHealth = $maxHealth;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return float|int
|
||||
*/
|
||||
@@ -761,13 +737,4 @@ class User
|
||||
return $this->maxMana;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param float|int $maxMana
|
||||
*/
|
||||
public function setMaxMana($maxMana): void
|
||||
{
|
||||
$this->maxMana = $maxMana;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user