mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-02 03:15:52 -04:00
Items now have cooldowns and play anims
Grenades, heal stims, heavy weapons. Heavy weapons seem to be considered usable items and it calls the heavy weapon command dependent on the template in template_command_mapping. You can't fire it from the toolbar due to a checkbox.
This commit is contained in:
@@ -66,6 +66,7 @@ public class TangibleObject extends SWGObject {
|
||||
private List<Integer> componentCustomizations = new ArrayList<Integer>();
|
||||
private Map<String, Byte> customizationVariables = new HashMap<String, Byte>();
|
||||
protected int optionsBitmask = 0;
|
||||
private int uses = 0;
|
||||
private int maxDamage = 1000;
|
||||
private boolean staticObject = true;
|
||||
protected String faction = ""; // Says you're "Imperial Special Forces" if it's 0 for some reason
|
||||
@@ -118,6 +119,15 @@ public class TangibleObject extends SWGObject {
|
||||
public void setIncapTimer(int incapTimer) {
|
||||
this.incapTimer = incapTimer;
|
||||
}
|
||||
|
||||
public int getUses() {
|
||||
return uses;
|
||||
}
|
||||
|
||||
public void setUses(int uses) {
|
||||
this.uses = uses;
|
||||
setIntAttribute("uses", uses);
|
||||
}
|
||||
|
||||
public synchronized int getConditionDamage() {
|
||||
return conditionDamage;
|
||||
|
||||
Reference in New Issue
Block a user