{"path": "scripts/restaurant/customer.gd", "sha256": "1a2ffbe3534d4e96664e6bb3bb22ed024c396c87be1d616a93fcc38517148692", "replacements": [{"old": "\treturn maxf(0.1, max_patience * resolved)\n", "new": "\tif phase in [ServicePhase.ORDERING, ServicePhase.AWAITING_MEAL] \\\n\t\t\tand restaurant != null and is_instance_valid(restaurant) \\\n\t\t\tand restaurant.has_method(\"order_supply_patience_ratio\"):\n\t\tresolved *= float(restaurant.order_supply_patience_ratio(self))\n\treturn maxf(0.1, max_patience * resolved)\n", "count": 1}, {"old": "func phase_is_wait() -> bool:\n", "new": "# Adjust the allowance when supply changes without restarting the countdown.\nfunc refresh_order_patience() -> void:\n\tif not has_live_order() or service_phase not in [ServicePhase.ORDERING, ServicePhase.AWAITING_MEAL]:\n\t\treturn\n\tvar allowed := phase_patience(service_phase)\n\tif is_equal_approx(allowed, phase_allowed):\n\t\treturn\n\tvar spent := maxf(0.0, phase_allowed - patience)\n\tphase_allowed = allowed\n\tpatience = maxf(0.0, phase_allowed - spent)\n\tqueue_redraw()\n\nfunc phase_is_wait() -> bool:\n", "count": 1}]}