v3.0.0: fixed chaotic censer's corrosion gas dmg starting at 1

This commit is contained in:
Evan Debenham
2025-01-23 13:52:16 -05:00
parent b8f7a4bdca
commit a0f5f9f99b

View File

@@ -252,6 +252,12 @@ public class ChaoticCenser extends Trinket {
if (depth == Dungeon.depth && branch == Dungeon.branch){ if (depth == Dungeon.depth && branch == Dungeon.branch){
GameScene.add(Blob.seed(targetCell, gasQuantity, gasType)); GameScene.add(Blob.seed(targetCell, gasQuantity, gasType));
//corrosion starts at the same level as potion of corrosive gas
if (gasType == CorrosiveGas.class){
((CorrosiveGas)Dungeon.level.blobs.get(CorrosiveGas.class)).setStrength( 2 + Dungeon.scalingDepth()/5, ChaoticCenser.class);
}
MagicMissile.boltFromChar(Dungeon.hero.sprite.parent, MISSILE_VFX.get(gasType), Dungeon.hero.sprite, targetCell, null); MagicMissile.boltFromChar(Dungeon.hero.sprite.parent, MISSILE_VFX.get(gasType), Dungeon.hero.sprite, targetCell, null);
Sample.INSTANCE.play(Assets.Sounds.GAS); Sample.INSTANCE.play(Assets.Sounds.GAS);
} }