v0.3.1: added in new trap sprites (no shading yet), added descriptions to existing traps

This commit is contained in:
Evan Debenham
2015-06-22 19:35:18 -04:00
parent f4898d903b
commit 9f02a93500
12 changed files with 93 additions and 21 deletions
@@ -21,17 +21,17 @@
package com.shatteredpixel.shatteredpixeldungeon.levels.traps;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Blob;
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.ToxicGas;
import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene;
import com.shatteredpixel.shatteredpixeldungeon.sprites.TrapSprite;
public class ToxicTrap extends Trap{
// 0x40CC55
{
name = "Toxic gas trap";
image = 0;
color = TrapSprite.GREEN;
shape = TrapSprite.GRILL;
}
@Override
@@ -40,4 +40,9 @@ public class ToxicTrap extends Trap{
GameScene.add( Blob.seed( pos, 300 + 20 * Dungeon.depth, ToxicGas.class ) );
}
@Override
public String desc() {
return "Triggering this trap will set a cloud of toxic gas loose within the surrounding area.";
}
}