V0.2.0c : Fixed Ring of Might behaviour

This commit is contained in:
Evan Debenham
2014-09-21 16:35:01 -04:00
parent 20686b5ba0
commit 8aa2b5c8a2
2 changed files with 20 additions and 37 deletions
@@ -1,7 +1,5 @@
package com.shatteredpixel.shatteredpixeldungeon.items.rings;
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
/**
* Created by debenhame on 10/09/2014.
@@ -27,29 +25,6 @@ public class RingOfMight extends Ring {
}
public class Might extends RingBuff {
@Override
public boolean attachTo( Char target ) {
if (target instanceof Hero){
((Hero) target).STR += level;
}
if (level > 0){
target.HT += level*5;
}
return super.attachTo(target);
}
@Override
public void detach(){
if (target instanceof Hero){
((Hero) target).STR -= level;
}
if (level > 0){
target.HT -= level*5;
}
super.detach();
}
}
}