use of com.shatteredpixel.shatteredpixeldungeon.sprites.CharSprite in project shattered-pixel-dungeon-gdx by 00-Evan.
the class QuickSlotButton method useTargeting.
private void useTargeting() {
if (lastTarget != null && Actor.chars().contains(lastTarget) && lastTarget.isAlive() && Dungeon.level.heroFOV[lastTarget.pos]) {
targeting = true;
CharSprite sprite = lastTarget.sprite;
sprite.parent.addToFront(crossM);
crossM.point(sprite.center(crossM));
crossB.point(slot.icon.center(crossB));
crossB.visible = true;
} else {
lastTarget = null;
targeting = false;
}
}
Aggregations