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 ) {
|
public Enchanting( Item item ) {
|
||||||
super( item.image(), null );
|
super( item.image(), null );
|
||||||
originToCenter();
|
//originToCenter();
|
||||||
|
|
||||||
if (item.glowing() != null) {
|
if (item.glowing() != null) {
|
||||||
color = item.glowing().color;
|
color = item.glowing().color;
|
||||||
@@ -65,10 +65,8 @@ public class Enchanting extends ItemSprite {
|
|||||||
public void update() {
|
public void update() {
|
||||||
super.update();
|
super.update();
|
||||||
|
|
||||||
if (passed == 0) {
|
x = target.sprite.center().x - width() / 2;
|
||||||
x = target.sprite.center().x - width() / 2;
|
y = target.sprite.y - 8 - height()/2;
|
||||||
y = target.sprite.y - height();
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (phase) {
|
switch (phase) {
|
||||||
case FADE_IN:
|
case FADE_IN:
|
||||||
|
|||||||
Reference in New Issue
Block a user