refactoring

This commit is contained in:
2025-05-01 23:34:31 +02:00
parent c41cdd57c4
commit f932ae1bcd
4 changed files with 40 additions and 35 deletions

View File

@@ -17,7 +17,7 @@ public abstract class Liquid : Element {
return true; // not necessarily end, subclasses could do some more things
}
protected override void Tick() {
protected virtual void Tick() {
Vector2I randomDirection = RandomDirectionDown();
if (randomDirection.Y != 0)
randomDirection *= Vector2I.Left * (int)(GD.Randi() % MAX_VERTICAL_SPREAD);