v3.2.1: adjusted enchanting effect to better follow the hero

This commit is contained in:
Evan Debenham
2025-08-13 14:42:19 -04:00
parent a0af4894a6
commit 69d14c505f

View File

@@ -48,7 +48,7 @@ public class Enchanting extends ItemSprite {
public Enchanting( Item item ) {
super( item.image(), null );
originToCenter();
//originToCenter();
if (item.glowing() != null) {
color = item.glowing().color;
@@ -65,10 +65,8 @@ public class Enchanting extends ItemSprite {
public void update() {
super.update();
if (passed == 0) {
x = target.sprite.center().x - width() / 2;
y = target.sprite.y - height();
}
x = target.sprite.center().x - width() / 2;
y = target.sprite.y - 8 - height()/2;
switch (phase) {
case FADE_IN: