Function to throw furniture.
(object: str, **kwargs)
| 123 | return FunctionResultStatus.ERROR, f"Cannot throw {object} - not a fruit", {} |
| 124 | |
| 125 | def throw_furniture(object: str, **kwargs) -> Tuple[FunctionResultStatus, str, dict]: |
| 126 | """ |
| 127 | Function to throw furniture. |
| 128 | """ |
| 129 | furniture = {"chair", "table", "stool", "lamp", "vase", "cushion"} |
| 130 | |
| 131 | if not object: |
| 132 | return FunctionResultStatus.ERROR, "No furniture specified", {} |
| 133 | |
| 134 | if object.lower() in furniture: |
| 135 | return FunctionResultStatus.DONE, f"Powerfully threw the {object} across the room!", {} |
| 136 | return FunctionResultStatus.ERROR, f"Cannot throw {object} - not a furniture item", {} |
| 137 | |
| 138 | |
| 139 | # create functions for each executable |
nothing calls this directly
no outgoing calls
no test coverage detected