From b53d0d4f44a418585750a6ea175a93fe65e5a2aa Mon Sep 17 00:00:00 2001 From: KansaiGaijin <83641841+KansaiGaijin@users.noreply.github.com> Date: Sun, 30 Oct 2022 15:07:46 +1300 Subject: [PATCH] Update player.py Updated small error in allocation code not counting words correctly --- player.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/player.py b/player.py index 755cfb0..1bd419c 100644 --- a/player.py +++ b/player.py @@ -1,6 +1,8 @@ from enum import Enum, auto from random import randint +import functions + class Player: """Character Creation""" @@ -325,7 +327,7 @@ class Player: while len(stats) != 0: input_text = input(">> ").title() words = input_text.split() - if len(words) < 2: + if len(words) <= 2: if words[0] in stats and words[1] in attributes: self.stats[words[1]] += int(words[0]) stats.remove(words[0])