Proper PlayerInstance comment adjustments.
This commit is contained in:
@@ -160,7 +160,7 @@ public abstract class WorldObject
|
||||
* <li>_worldRegion != null <i>(WorldObject is visible at the beginning)</i></li><br>
|
||||
* <br>
|
||||
* <b><u>Example of use</u>:</b><br>
|
||||
* <li>Do Pickup Item : PCInstance and Pet</li><br>
|
||||
* <li>Do Pickup Item : PlayerInstance and Pet</li><br>
|
||||
* @param creature Player that pick up the item
|
||||
*/
|
||||
public void pickupMe(Creature creature) // NOTE: Should move this function into ItemInstance because it does not apply to Creature
|
||||
|
@@ -33,8 +33,8 @@ public class CustomNpcInstance
|
||||
private String _name;
|
||||
private String _title;
|
||||
|
||||
private int[] _int; // PcInstance integer stats
|
||||
private boolean _boolean[]; // PcInstance booolean stats
|
||||
private int[] _int; // PlayerInstance integer stats
|
||||
private boolean _boolean[]; // PlayerInstance booolean stats
|
||||
private NpcInstance _npcInstance; // Reference to Npc with this stats
|
||||
private ClassId _classId; // ClassId of this (N)Pc
|
||||
|
||||
@@ -52,7 +52,7 @@ public class CustomNpcInstance
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes the semi PcInstance stats for this NpcInstance, making it appear as a PcInstance on all clients
|
||||
* Initializes the semi PlayerInstance stats for this NpcInstance, making it appear as a PlayerInstance on all clients
|
||||
*/
|
||||
private final void initialize()
|
||||
{
|
||||
@@ -480,7 +480,7 @@ public class CustomNpcInstance
|
||||
}
|
||||
|
||||
// Not really necessary but maybe called upon on wrong random settings:
|
||||
// Initiate this PcInstance class id to the correct pcInstance class.
|
||||
// Initiate this PlayerInstance class id to the correct PlayerInstance class.
|
||||
final ClassId ids[] = ClassId.values();
|
||||
if (ids != null)
|
||||
{
|
||||
|
@@ -2886,7 +2886,7 @@ public class NpcInstance extends Creature
|
||||
public void setSpawn(Spawn spawn)
|
||||
{
|
||||
_spawn = spawn;
|
||||
// Does this Npc morph into a PcInstance?
|
||||
// Does this Npc morph into a PlayerInstance?
|
||||
if ((_spawn != null) && CustomNpcInstanceManager.getInstance().isCustomNpcInstance(_spawn.getId(), getNpcId()))
|
||||
{
|
||||
new CustomNpcInstance(this);
|
||||
|
Reference in New Issue
Block a user