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:
Treeku
2014-04-14 11:55:40 +01:00
parent db33827e18
commit db3f0368a0
3 changed files with 63 additions and 11 deletions
@@ -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;