print new skill calculations to client

This commit is contained in:
2025-01-31 19:55:24 -06:00
parent c415bb15e2
commit 05bb323c0c
2 changed files with 12 additions and 0 deletions
@@ -49,6 +49,8 @@ public class PrintSkillsCmd extends AbstractDevCmd {
+ skill.getModifiedAmount() + '('
+ skill.getTotalSkillPercet() + " )");
}
throwbackInfo(pc, "= = = = = NEW CALCULATIONS = = = = =");
PlayerCombatStats.PrintSkillsToClient(pc);
} else
throwbackInfo(pc, "Skills not found for player");
}
+10
View File
@@ -1,6 +1,7 @@
package engine.objects;
import engine.Enum;
import engine.gameManager.ChatManager;
import engine.powers.EffectsBase;
import engine.powers.effectmodifiers.AbstractEffectModifier;
import engine.server.MBServerStatics;
@@ -772,4 +773,13 @@ public class PlayerCombatStats {
}
return Math.round(level);
}
public static void PrintSkillsToClient(PlayerCharacter pc){
for(CharacterSkill skill : pc.skills.values()){
String name = skill.getName();
int base = calculateBaseSkillLevel(name,pc);
int buffed = calculateBuffedSkillLevel(name,pc);
ChatManager.chatSystemInfo(pc,name + " = " + base + " (" + buffed + ")");
}
}
}