v0.2.3e: refactored quick slot button, should now support multiple instances of itself tied to different quickslots, needs testing
This commit is contained in:
+5
-5
@@ -10,7 +10,7 @@ import com.shatteredpixel.shatteredpixeldungeon.items.Item;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.CharSprite;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.ui.QuickSlot;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.ui.QuickSlotButton;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.windows.WndOptions;
|
||||
import com.watabou.noosa.audio.Sample;
|
||||
@@ -202,7 +202,7 @@ public class TimekeepersHourglass extends Artifact {
|
||||
} else if (cursed && Random.Int(10) == 0)
|
||||
((Hero) target).spend( TICK );
|
||||
|
||||
QuickSlot.refresh();
|
||||
QuickSlotButton.refresh();
|
||||
|
||||
spend( TICK );
|
||||
|
||||
@@ -226,7 +226,7 @@ public class TimekeepersHourglass extends Artifact {
|
||||
|
||||
target.invisible++;
|
||||
|
||||
QuickSlot.refresh();
|
||||
QuickSlotButton.refresh();
|
||||
|
||||
Dungeon.observe();
|
||||
|
||||
@@ -262,7 +262,7 @@ public class TimekeepersHourglass extends Artifact {
|
||||
charge --;
|
||||
}
|
||||
|
||||
QuickSlot.refresh();
|
||||
QuickSlotButton.refresh();
|
||||
|
||||
if (charge <= 0){
|
||||
detach();
|
||||
@@ -301,7 +301,7 @@ public class TimekeepersHourglass extends Artifact {
|
||||
GameScene.freezeEmitters = false;
|
||||
|
||||
charge = 0;
|
||||
QuickSlot.refresh();
|
||||
QuickSlotButton.refresh();
|
||||
super.detach();
|
||||
activeBuff = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user