'Easy', self::MEDIUM => 'Medium', self::HARD => 'Hard', self::VERY_HARD => 'Very Hard', }; } /** * Get the success rate modifier for this difficulty */ public function successModifier(): float { return match($this) { self::EASY => 0.20, // +20% success rate self::MEDIUM => 0.00, // Base success rate self::HARD => -0.20, // -20% success rate self::VERY_HARD => -0.40,// -40% success rate }; } /** * Get the reward multiplier for this difficulty */ public function rewardMultiplier(): float { return match($this) { self::EASY => 0.5, self::MEDIUM => 1.0, self::HARD => 2.0, self::VERY_HARD => 3.0, }; } /** * Get the color class for the difficulty badge */ public function color(): string { return match($this) { self::EASY => 'bg-green-500', self::MEDIUM => 'bg-yellow-500', self::HARD => 'bg-orange-500', self::VERY_HARD => 'bg-red-500', }; } }