v2.0.0: Charged shot now expires after a long period of time
This commit is contained in:
+3
-2
@@ -24,6 +24,7 @@ package com.shatteredpixel.shatteredpixeldungeon.items.weapon.melee;
|
|||||||
import com.shatteredpixel.shatteredpixeldungeon.Assets;
|
import com.shatteredpixel.shatteredpixeldungeon.Assets;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
|
||||||
|
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.messages.Messages;
|
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
|
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
|
||||||
@@ -56,13 +57,13 @@ public class Crossbow extends MeleeWeapon {
|
|||||||
}
|
}
|
||||||
|
|
||||||
beforeAbilityUsed(hero);
|
beforeAbilityUsed(hero);
|
||||||
Buff.affect(hero, ChargedShot.class);
|
Buff.prolong(hero, ChargedShot.class, 100f);
|
||||||
hero.sprite.operate(hero.pos);
|
hero.sprite.operate(hero.pos);
|
||||||
hero.next();
|
hero.next();
|
||||||
afterAbilityUsed(hero);
|
afterAbilityUsed(hero);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class ChargedShot extends Buff{
|
public static class ChargedShot extends FlavourBuff{
|
||||||
|
|
||||||
{
|
{
|
||||||
announced = true;
|
announced = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user