Merged in Obique/holocore (pull request #617)

NPC fixes/updates
This commit is contained in:
Obique PSWG
2018-12-27 02:33:18 +00:00
4 changed files with 1764 additions and 1764 deletions
File diff suppressed because it is too large Load Diff
@@ -44,7 +44,7 @@ public final class ExperienceIntent extends Intent {
this.creatureObject = creatureObject;
this.xpType = xpType;
this.experienceGained = experienceGained;
this.multiply = false;
this.multiply = multiply;
}
public CreatureObject getCreatureObject() {
@@ -187,8 +187,8 @@ public class NPCCreator {
private static WeaponObject createWeapon(DetailNpcStatInfo detailNpcStat, String template) {
try {
WeaponObject weapon = (WeaponObject) ObjectCreator.createObjectFromTemplate(template);
weapon.setMinDamage((int) (detailNpcStat.getDamagePerSecond() * 0.90));
weapon.setMaxDamage(detailNpcStat.getDamagePerSecond());
weapon.setMinDamage((int) (detailNpcStat.getDamagePerSecond() * 2 * 0.90));
weapon.setMaxDamage(detailNpcStat.getDamagePerSecond() * 2);
int range = DataLoader.npcWeaponRanges().getWeaponRange(template);
if (range == -1)
Log.w("Failed to load weapon range for: %s", template);