v0.3.0: added chilled debuff

This commit is contained in:
Evan Debenham
2015-04-25 01:33:50 -04:00
parent 6507df2824
commit 3f1043e4b9
9 changed files with 121 additions and 14 deletions
@@ -229,7 +229,8 @@ public class Weapon extends KindOfWeapon {
public ItemSprite.Glowing glowing() {
return enchantment != null ? enchantment.glowing() : null;
}
//FIXME: most enchantment names are pretty broken, should refactor
public static abstract class Enchantment implements Bundlable {
private static final Class<?>[] enchants = new Class<?>[]{
@@ -19,6 +19,7 @@ package com.shatteredpixel.shatteredpixeldungeon.items.weapon.enchantments;
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Chill;
import com.shatteredpixel.shatteredpixeldungeon.items.weapon.Weapon;
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSprite;
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSprite.Glowing;
@@ -39,8 +40,8 @@ public class Slow extends Weapon.Enchantment {
if (Random.Int( level + 4 ) >= 3) {
Buff.prolong( defender, com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Slow.class,
Random.Float( 1, 1.5f + level ) );
Buff.affect( defender, Chill.class,
Random.Float( 1, 3f ) );
return true;
} else {