mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-02 03:15:52 -04:00
Update NPCS to fit recent changes to mobiletemplate and weapontemplate
This commit is contained in:
@@ -132,7 +132,10 @@ public class SpawnService {
|
||||
|
||||
WeaponObject defaultWeapon = null;
|
||||
Vector<WeaponTemplate> weaponTemplates = mobileTemplate.getWeaponTemplateVector();
|
||||
int rnd = new Random().nextInt(weaponTemplates.size());
|
||||
int rnd = 0;
|
||||
|
||||
if (weaponTemplates.size() > 0 )
|
||||
rnd = new Random().nextInt(weaponTemplates.size());
|
||||
|
||||
if (weaponTemplates.size() == 0){
|
||||
defaultWeapon = (WeaponObject) core.objectService.createObject("object/weapon/creature/shared_creature_default_weapon.iff", creature.getPlanet());
|
||||
|
||||
Reference in New Issue
Block a user