From 1475dd4020ec24df8b29f5d90d89843b64f93f95 Mon Sep 17 00:00:00 2001 From: Joel Kronqvist Date: Sun, 2 Nov 2025 22:36:35 +0200 Subject: feat: hacky level changing and parsing system, also fixed unintentional class-wide variables --- PressurePlate.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'PressurePlate.py') diff --git a/PressurePlate.py b/PressurePlate.py index 0bcb7c3..fcebe4b 100644 --- a/PressurePlate.py +++ b/PressurePlate.py @@ -2,19 +2,15 @@ class PressurePlate: - pos = None - - _trails = [] - - _isActive = False - - - def __init__(self, pos, trails = []): + def __init__(self, pos): self.pos = pos - self._trails = trails + self._trails = [] + print(f"at pos {self.pos.toString()} trails: {self._trails}") + self._isActive = False def addTrail(self, trail): + print(f"plate at {self.pos.toString()} got trail: {trail}") self._trails.append(trail) -- cgit v1.2.3