v0.3.1a: cleaned up quickslot autotargeting:
- quickslots will now only autotarget enemies they can actually auto-aim for. - cleaned up code for determining which items should use targeting
This commit is contained in:
@@ -50,7 +50,10 @@ public class Bomb extends Item {
|
||||
{
|
||||
name = "bomb";
|
||||
image = ItemSpriteSheet.BOMB;
|
||||
|
||||
defaultAction = AC_LIGHTTHROW;
|
||||
usesTargeting = true;
|
||||
|
||||
stackable = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,10 @@ public class Honeypot extends Item {
|
||||
{
|
||||
name = "honeypot";
|
||||
image = ItemSpriteSheet.HONEYPOT;
|
||||
|
||||
defaultAction = AC_THROW;
|
||||
usesTargeting = true;
|
||||
|
||||
stackable = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -66,6 +66,7 @@ public class Item implements Bundlable {
|
||||
public static final String AC_THROW = "THROW";
|
||||
|
||||
public String defaultAction;
|
||||
public boolean usesTargeting;
|
||||
|
||||
protected String name = "smth";
|
||||
public int image = 0;
|
||||
|
||||
@@ -55,6 +55,7 @@ public class EtherealChains extends Artifact {
|
||||
charge = 5;
|
||||
|
||||
defaultAction = AC_CAST;
|
||||
usesTargeting = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -88,6 +88,7 @@ public class LloydsBeacon extends Artifact {
|
||||
chargeCap = 3+level;
|
||||
|
||||
defaultAction = AC_ZAP;
|
||||
usesTargeting = true;
|
||||
}
|
||||
|
||||
private static final String DEPTH = "depth";
|
||||
|
||||
@@ -78,6 +78,7 @@ public abstract class Wand extends Item {
|
||||
|
||||
{
|
||||
defaultAction = AC_ZAP;
|
||||
usesTargeting = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -61,6 +61,7 @@ public class MagesStaff extends MeleeWeapon {
|
||||
image = ItemSpriteSheet.MAGES_STAFF;
|
||||
|
||||
defaultAction = AC_ZAP;
|
||||
usesTargeting = true;
|
||||
|
||||
unique = true;
|
||||
bones = false;
|
||||
|
||||
@@ -47,7 +47,9 @@ public class MissileWeapon extends Weapon {
|
||||
{
|
||||
stackable = true;
|
||||
levelKnown = true;
|
||||
|
||||
defaultAction = AC_THROW;
|
||||
usesTargeting = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user