v3.2.1: adjusted enchanting effect to better follow the hero
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user