More types

This commit is contained in:
2023-08-02 12:39:42 +00:00
parent 72de6363fe
commit 4f60c3d024
5 changed files with 20 additions and 13 deletions

View File

@ -4,7 +4,7 @@ namespace DNW\Skills;
class PartialPlay
{
public static function getPartialPlayPercentage($player)
public static function getPartialPlayPercentage(Player $player): float
{
// If the player doesn't support the interface, assume 1.0 == 100%
$supportsPartialPlay = $player instanceof ISupportPartialPlay;