v0.3.0: added better sprites & descriptions to new plants
This commit is contained in:
parent
7230fe6be9
commit
fc6d1f128b
BIN
assets/items.png
BIN
assets/items.png
Binary file not shown.
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Binary file not shown.
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 4.0 KiB |
|
@ -250,7 +250,8 @@ public class WandOfRegrowth extends Wand {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String desc() {
|
public String desc() {
|
||||||
return "";
|
return "Dewcatchers camouflage as grass to avoid attention, " +
|
||||||
|
"but their bulges of collected dew give them away.";
|
||||||
}
|
}
|
||||||
|
|
||||||
//seed is never dropped, only care about plant class
|
//seed is never dropped, only care about plant class
|
||||||
|
@ -291,7 +292,8 @@ public class WandOfRegrowth extends Wand {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String desc() {
|
public String desc() {
|
||||||
return "";
|
return "Seed Pods look pretty, but the seeds they carry are actually " +
|
||||||
|
"stolen from other plants they kill with their roots.";
|
||||||
}
|
}
|
||||||
|
|
||||||
//seed is never dropped, only care about plant class
|
//seed is never dropped, only care about plant class
|
||||||
|
|
|
@ -10,7 +10,9 @@ import com.watabou.utils.Random;
|
||||||
|
|
||||||
public class Starflower extends Plant {
|
public class Starflower extends Plant {
|
||||||
|
|
||||||
private static final String TXT_DESC = "TODO";
|
private static final String TXT_DESC =
|
||||||
|
"An extremely rare plant, " +
|
||||||
|
"Starflower is said to grant holy power to whomever touches it.";
|
||||||
|
|
||||||
{
|
{
|
||||||
image = 11;
|
image = 11;
|
||||||
|
@ -24,13 +26,13 @@ public class Starflower extends Plant {
|
||||||
if (ch != null) Buff.prolong(ch, Bless.class, 30f);
|
if (ch != null) Buff.prolong(ch, Bless.class, 30f);
|
||||||
|
|
||||||
if (Random.Int(5) == 0){
|
if (Random.Int(5) == 0){
|
||||||
Dungeon.level.drop(new Seed(), pos);
|
Dungeon.level.drop(new Seed(), pos).sprite.drop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String desc() {
|
public String desc() {
|
||||||
return "";
|
return TXT_DESC;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class Seed extends Plant.Seed{
|
public static class Seed extends Plant.Seed{
|
||||||
|
@ -39,7 +41,7 @@ public class Starflower extends Plant {
|
||||||
plantName = "Starflower";
|
plantName = "Starflower";
|
||||||
|
|
||||||
name = "Seed of " + plantName;
|
name = "Seed of " + plantName;
|
||||||
image = ItemSpriteSheet.SEED_BLANDFRUIT;
|
image = ItemSpriteSheet.SEED_STARFLOWER;
|
||||||
|
|
||||||
plantClass = Starflower.class;
|
plantClass = Starflower.class;
|
||||||
alchemyClass = PotionOfExperience.class;
|
alchemyClass = PotionOfExperience.class;
|
||||||
|
@ -47,7 +49,7 @@ public class Starflower extends Plant {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String desc() {
|
public String desc() {
|
||||||
return "";
|
return TXT_DESC;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -198,15 +198,16 @@ public class ItemSpriteSheet {
|
||||||
//Row Twelve: Seeds
|
//Row Twelve: Seeds
|
||||||
public static final int SEED_ROTBERRY = ROW12+0;
|
public static final int SEED_ROTBERRY = ROW12+0;
|
||||||
public static final int SEED_FIREBLOOM = ROW12+1;
|
public static final int SEED_FIREBLOOM = ROW12+1;
|
||||||
public static final int SEED_BLINDWEED = ROW12+2;
|
public static final int SEED_STARFLOWER = ROW12+2;
|
||||||
public static final int SEED_SUNGRASS = ROW12+3;
|
public static final int SEED_BLINDWEED = ROW12+3;
|
||||||
public static final int SEED_ICECAP = ROW12+4;
|
public static final int SEED_SUNGRASS = ROW12+4;
|
||||||
public static final int SEED_STORMVINE = ROW12+5;
|
public static final int SEED_ICECAP = ROW12+5;
|
||||||
public static final int SEED_SORROWMOSS = ROW12+6;
|
public static final int SEED_STORMVINE = ROW12+6;
|
||||||
public static final int SEED_DREAMFOIL = ROW12+7;
|
public static final int SEED_SORROWMOSS = ROW12+7;
|
||||||
public static final int SEED_EARTHROOT = ROW12+8;
|
public static final int SEED_DREAMFOIL = ROW12+8;
|
||||||
public static final int SEED_FADELEAF = ROW12+9;
|
public static final int SEED_EARTHROOT = ROW12+9;
|
||||||
public static final int SEED_BLANDFRUIT = ROW12+10;
|
public static final int SEED_FADELEAF = ROW12+10;
|
||||||
|
public static final int SEED_BLANDFRUIT = ROW12+11;
|
||||||
|
|
||||||
//Row Thirteen: Food
|
//Row Thirteen: Food
|
||||||
public static final int MEAT = ROW13+0;
|
public static final int MEAT = ROW13+0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user