mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-06 21:13:37 -04:00
Merge pull request #187 from madsboddum/equipment_skill_mods
Exotic mods from equipment are granted to the player when equipped
This commit is contained in:
+1
-1
@@ -112,7 +112,7 @@ public class SkillModService extends Service {
|
||||
CreatureObject creature = cti.getObject().getOwner().getCreatureObject();
|
||||
|
||||
for (Map.Entry<String, String> attributes : cti.getObject().getAttributes().entrySet()){
|
||||
if(attributes.getKey().endsWith("_modified")){
|
||||
if(attributes.getKey().startsWith("cat_stat_mod_bonus") || attributes.getKey().startsWith("cat_skill_mod_bonus")){
|
||||
String[] splitModName = attributes.getKey().split(":",2);
|
||||
String modName = splitModName[1];
|
||||
int modValue = Integer.parseInt(attributes.getValue());
|
||||
|
||||
Reference in New Issue
Block a user