V0.2.0: Added classes for 6 (yes 6!) new rings, tied into item handler/generator. Still need implementation.
This commit is contained in:
parent
255c98b148
commit
ed86176362
|
@ -161,21 +161,19 @@ public class Generator {
|
||||||
MysteryMeat.class };
|
MysteryMeat.class };
|
||||||
Category.FOOD.probs = new float[]{ 4, 1, 0 };
|
Category.FOOD.probs = new float[]{ 4, 1, 0 };
|
||||||
|
|
||||||
Category.RING.classes = new Class<?>[]{
|
Category.RING.classes = new Class<?>[]{
|
||||||
//RingOfMending.class,
|
RingOfAccuracy.class,
|
||||||
//RingOfDetection.class,
|
RingOfEvasion.class,
|
||||||
//RingOfShadows.class,
|
RingOfElements.class,
|
||||||
RingOfMagic.class,
|
RingOfForce.class,
|
||||||
//RingOfHerbalism.class,
|
RingOfFuror.class,
|
||||||
RingOfAccuracy.class,
|
RingOfHaste.class,
|
||||||
RingOfEvasion.class,
|
RingOfMagic.class,
|
||||||
//RingOfSatiety.class,
|
RingOfMight.class,
|
||||||
RingOfHaste.class,
|
RingOfSharpshooting.class,
|
||||||
RingOfElements.class
|
RingOfTenacity.class,
|
||||||
//RingOfHaggler.class,
|
RingOfWealth.class};
|
||||||
//RingOfThorns.class
|
Category.RING.probs = new float[]{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 };
|
||||||
};
|
|
||||||
Category.RING.probs = new float[]{ 1, 1, 1, 1, 1 };
|
|
||||||
|
|
||||||
Category.SEED.classes = new Class<?>[]{
|
Category.SEED.classes = new Class<?>[]{
|
||||||
Firebloom.Seed.class,
|
Firebloom.Seed.class,
|
||||||
|
|
|
@ -42,19 +42,18 @@ public class Ring extends KindofMisc {
|
||||||
|
|
||||||
protected Buff buff;
|
protected Buff buff;
|
||||||
|
|
||||||
private static final Class<?>[] rings = {
|
private static final Class<?>[] rings = {
|
||||||
//RingOfMending.class,
|
RingOfAccuracy.class,
|
||||||
//RingOfDetection.class,
|
RingOfEvasion.class,
|
||||||
//RingOfShadows.class,
|
RingOfElements.class,
|
||||||
|
RingOfForce.class,
|
||||||
|
RingOfFuror.class,
|
||||||
|
RingOfHaste.class,
|
||||||
RingOfMagic.class,
|
RingOfMagic.class,
|
||||||
//RingOfHerbalism.class,
|
RingOfMight.class,
|
||||||
RingOfAccuracy.class,
|
RingOfSharpshooting.class,
|
||||||
RingOfEvasion.class,
|
RingOfTenacity.class,
|
||||||
//RingOfSatiety.class,
|
RingOfWealth.class,
|
||||||
RingOfHaste.class,
|
|
||||||
//RingOfHaggler.class,
|
|
||||||
RingOfElements.class,
|
|
||||||
//RingOfThorns.class
|
|
||||||
};
|
};
|
||||||
private static final String[] gems =
|
private static final String[] gems =
|
||||||
{"diamond", "opal", "garnet", "ruby", "amethyst", "topaz", "onyx", "tourmaline", "emerald", "sapphire", "quartz", "agate"};
|
{"diamond", "opal", "garnet", "ruby", "amethyst", "topaz", "onyx", "tourmaline", "emerald", "sapphire", "quartz", "agate"};
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
package com.shatteredpixel.shatteredpixeldungeon.items.rings;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by debenhame on 10/09/2014.
|
||||||
|
*/
|
||||||
|
public class RingOfForce extends Ring {
|
||||||
|
//TODO: tie this into game logic
|
||||||
|
{
|
||||||
|
name = "Ring of Force";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected RingBuff buff( ) {
|
||||||
|
return new Force();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String desc() {
|
||||||
|
return isKnown() ?
|
||||||
|
"This ring enhances the force of the wearer's blows. " +
|
||||||
|
"This extra power is largely wasted when wielding weapons, " +
|
||||||
|
"but an unarmed attack will be made much stronger. " +
|
||||||
|
"A cursed ring will instead weaken the wearer's blows." :
|
||||||
|
super.desc();
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Force extends RingBuff {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
package com.shatteredpixel.shatteredpixeldungeon.items.rings;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by debenhame on 10/09/2014.
|
||||||
|
*/
|
||||||
|
public class RingOfFuror extends Ring {
|
||||||
|
//TODO: tie this into game logic
|
||||||
|
{
|
||||||
|
name = "Ring of Furor";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected RingBuff buff( ) {
|
||||||
|
return new Furor();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String desc() {
|
||||||
|
return isKnown() ?
|
||||||
|
"This ring grants the wearer a sort of rising inner fury. " +
|
||||||
|
"Every successful attack will increase the wearers attacking speed " +
|
||||||
|
"until they stop fighting or miss too frequently. " +
|
||||||
|
"A cursed ring will instead slow the wearer's speed of attack." :
|
||||||
|
super.desc();
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Furor extends RingBuff {
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,29 @@
|
||||||
|
package com.shatteredpixel.shatteredpixeldungeon.items.rings;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by debenhame on 10/09/2014.
|
||||||
|
*/
|
||||||
|
public class RingOfMight extends Ring {
|
||||||
|
//TODO: tie this into game logic
|
||||||
|
{
|
||||||
|
name = "Ring of Might";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected RingBuff buff( ) {
|
||||||
|
return new Might();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String desc() {
|
||||||
|
return isKnown() ?
|
||||||
|
"This ring enhances the physical traits of the wearer, " +
|
||||||
|
"granting them greater physical strength and constitution. " +
|
||||||
|
"A cursed ring will weaken the wearer." :
|
||||||
|
super.desc();
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Might extends RingBuff {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,28 @@
|
||||||
|
package com.shatteredpixel.shatteredpixeldungeon.items.rings;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by debenhame on 10/09/2014.
|
||||||
|
*/
|
||||||
|
public class RingOfSharpshooting extends Ring {
|
||||||
|
//TODO: tie this into game logic
|
||||||
|
{
|
||||||
|
name = "Ring of Sharpshooting";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected RingBuff buff( ) {
|
||||||
|
return new Aim();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String desc() {
|
||||||
|
return isKnown() ?
|
||||||
|
"This ring enhances the wearer's precision and aim, which will " +
|
||||||
|
"make all projectile weapons hit harder and last longer. " +
|
||||||
|
"A cursed ring will have the opposite effect.":
|
||||||
|
super.desc();
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Aim extends RingBuff {
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,29 @@
|
||||||
|
package com.shatteredpixel.shatteredpixeldungeon.items.rings;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by debenhame on 10/09/2014.
|
||||||
|
*/
|
||||||
|
public class RingOfTenacity extends Ring {
|
||||||
|
//TODO: tie this into game logic
|
||||||
|
{
|
||||||
|
name = "Ring of Tenacity";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected RingBuff buff( ) {
|
||||||
|
return new Tenacity();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String desc() {
|
||||||
|
return isKnown() ?
|
||||||
|
"When worn, this ring will allow the wearer to resist normally mortal strikes. " +
|
||||||
|
"The weaker the user becomes, the more resistant they will be to physical damage. " +
|
||||||
|
"A cursed ring will instead make it easier for the wearer to be executed." :
|
||||||
|
super.desc();
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Tenacity extends RingBuff {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,28 @@
|
||||||
|
package com.shatteredpixel.shatteredpixeldungeon.items.rings;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by debenhame on 10/09/2014.
|
||||||
|
*/
|
||||||
|
public class RingOfWealth extends Ring {
|
||||||
|
//TODO: tie this into game logic
|
||||||
|
{
|
||||||
|
name = "Ring of Wealth";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected RingBuff buff( ) {
|
||||||
|
return new Wealth();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String desc() {
|
||||||
|
return isKnown() ?
|
||||||
|
"It's not clear what this ring does exactly, good luck may influence " +
|
||||||
|
"the life an an adventurer in many subtle ways. " +
|
||||||
|
"Naturally a cursed ring would give bad luck." :
|
||||||
|
super.desc();
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Wealth extends RingBuff {
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user