Clean up SweetLogger prints by making file and functions arguments automatic
This commit is contained in:
+4
-4
@@ -59,7 +59,7 @@ func _refresh_progress_bar() -> void:
|
||||
|
||||
|
||||
func _on_object_picked_up(_item) -> void:
|
||||
SweetLogger.debug("object picked up: {0}", [_item], "sink.gd", "_on_object_picked_up")
|
||||
SweetLogger.debug("object picked up: {0}", [_item])
|
||||
plate = _item.get_node_or_null("PlateController") as PlateController
|
||||
if plate:
|
||||
# The setter starts the effects and shows the bar, here and on clients.
|
||||
@@ -67,7 +67,7 @@ func _on_object_picked_up(_item) -> void:
|
||||
|
||||
|
||||
func _on_object_dropped(_item) -> void:
|
||||
SweetLogger.debug("object drop", [], "sink.gd", "_on_object_dropped")
|
||||
SweetLogger.debug("object drop", [])
|
||||
_reset_sink()
|
||||
|
||||
|
||||
@@ -81,14 +81,14 @@ func complete_washing():
|
||||
return
|
||||
plate.is_dirty = false
|
||||
_reset_sink()
|
||||
SweetLogger.debug("washing complete!", [], "sink.gd", "complete_washing")
|
||||
SweetLogger.debug("washing complete!", [])
|
||||
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
if is_washing:
|
||||
time_washed += wash_speed * delta
|
||||
_refresh_progress_bar()
|
||||
SweetLogger.debug("washing plate: {0}", [time_washed], "sink.gd", "_process")
|
||||
SweetLogger.debug("washing plate: {0}", [time_washed])
|
||||
|
||||
if time_washed >= plate_wash_time:
|
||||
complete_washing()
|
||||
|
||||
Reference in New Issue
Block a user