Fix game crashing when weapons were not customized.

This commit is contained in:
csd4ni3l
2025-07-16 09:31:06 +02:00
parent 5d3f5c157b
commit 027990f4fe
2 changed files with 4 additions and 5 deletions

View File

@@ -70,7 +70,6 @@ class Player(FixedFirstPersonController):
self.gun.texture = Texture(Path(self.settings_dict.get("weapons", weapons)[weapon_name]["image"]))
self.weapon_attack_speed = self.settings_dict.get("weapons", weapons)[weapon_name]["atk_speed"]
self.weapon_dmg = self.settings_dict.get("weapons", weapons)[weapon_name]["dmg"]
if self.score > self.high_score:
self.high_score = self.score