From da82a8c1ad3087e5f6be066a5be5dbecf5bbd764 Mon Sep 17 00:00:00 2001 From: novus Date: Mon, 29 Dec 2025 01:44:41 -0500 Subject: [PATCH] added comments --- traits.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/traits.py b/traits.py index e8e008d..eaf7a4b 100644 --- a/traits.py +++ b/traits.py @@ -1,10 +1,10 @@ -class Trait: - def __init__(self, name, buff_value): - self.name = name - self.buff_value = buff_value +class Trait: # The trait itself. + def __init__(self, name, buff_value): # Self is needed and then defined furthermore in following commas + self.name = name # name is now a functionable variable + self.buff_value = buff_value #buff_value is now a functionable variable def trigger_effect(self): - print(self.name + " gives a buff of", self.buff_value) + print(self.name + " gives a buff of", self.buff_value) # print name + text + buff value class RewardTrait(Trait): def set_price(self, price):