From 4b2563e4a196f5683271153b3007ba63190028e7 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 26 Mar 2024 13:26:18 -0500 Subject: [PATCH] saetor skills --- src/engine/objects/PlayerCharacter.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 99f7773a..ac2a0f47 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -4208,19 +4208,19 @@ public class PlayerCharacter extends AbstractCharacter { if (this.race.getName().equals("Saetor")) { if(this.skills.containsKey("Staff") == false){ - CharacterSkill staffSkill = new CharacterSkill(SkillsBase.getFromCache("Staff"),this); - this.skills.put("Staff",staffSkill); - staffSkill.updateDatabase(); + CharacterSkill newSkill = new CharacterSkill(SkillsBase.getFromCache("Staff"),this); + this.skills.put("Staff",newSkill); + newSkill.updateDatabase(); } if(this.skills.containsKey("Staff Mastery") == false){ - CharacterSkill staffSkill = new CharacterSkill(SkillsBase.getFromCache("Staff Mastery"),this); - this.skills.put("Staff Mastery",staffSkill); - staffSkill.updateDatabase(); + CharacterSkill newSkill = new CharacterSkill(SkillsBase.getFromCache("Staff Mastery"),this); + this.skills.put("Staff Mastery",newSkill); + newSkill.updateDatabase(); } if(this.skills.containsKey("Parry") == false){ - CharacterSkill staffSkill = new CharacterSkill(SkillsBase.getFromCache("Parry"),this); - this.skills.put("Parry",staffSkill); - staffSkill.updateDatabase(); + CharacterSkill newSkill = new CharacterSkill(SkillsBase.getFromCache("Parry"),this); + this.skills.put("Parry",newSkill); + newSkill.updateDatabase(); } } //tell the player to applyBonuses because something has changed