v3.0.0: added some simple vfx to the recally glyph spell
This commit is contained in:
+4
@@ -25,6 +25,7 @@ import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
|||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.FlavourBuff;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.FlavourBuff;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Talent;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Talent;
|
||||||
|
import com.shatteredpixel.shatteredpixeldungeon.effects.Enchanting;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
|
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.items.artifacts.HolyTome;
|
import com.shatteredpixel.shatteredpixeldungeon.items.artifacts.HolyTome;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.Scroll;
|
import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.Scroll;
|
||||||
@@ -67,6 +68,9 @@ public class RecallGlyph extends ClericSpell {
|
|||||||
|
|
||||||
item.setCurrent(hero);
|
item.setCurrent(hero);
|
||||||
|
|
||||||
|
hero.sprite.operate(hero.pos);
|
||||||
|
Enchanting.show(hero, item);
|
||||||
|
|
||||||
if (item instanceof Scroll){
|
if (item instanceof Scroll){
|
||||||
((Scroll) item).anonymize();
|
((Scroll) item).anonymize();
|
||||||
((Scroll) item).doRead();
|
((Scroll) item).doRead();
|
||||||
|
|||||||
@@ -50,7 +50,11 @@ public class Enchanting extends ItemSprite {
|
|||||||
super( item.image(), null );
|
super( item.image(), null );
|
||||||
originToCenter();
|
originToCenter();
|
||||||
|
|
||||||
|
if (item.glowing() != null) {
|
||||||
color = item.glowing().color;
|
color = item.glowing().color;
|
||||||
|
} else {
|
||||||
|
color = -1;
|
||||||
|
}
|
||||||
|
|
||||||
phase = Phase.FADE_IN;
|
phase = Phase.FADE_IN;
|
||||||
duration = FADE_IN_TIME;
|
duration = FADE_IN_TIME;
|
||||||
@@ -72,7 +76,9 @@ public class Enchanting extends ItemSprite {
|
|||||||
scale.set( passed / duration );
|
scale.set( passed / duration );
|
||||||
break;
|
break;
|
||||||
case STATIC:
|
case STATIC:
|
||||||
|
if (color != -1) {
|
||||||
tint(color, passed / duration * 0.8f);
|
tint(color, passed / duration * 0.8f);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case FADE_OUT:
|
case FADE_OUT:
|
||||||
alpha( (1 - passed / duration) * ALPHA );
|
alpha( (1 - passed / duration) * ALPHA );
|
||||||
|
|||||||
Reference in New Issue
Block a user