HasKeycard := func(Player : Player): bool -> # Check if the player's inventory contains "Keycard" # If it does, return true. Otherwise, false. if Player.HasItem("Keycard"): return true return false