v3.0.0: fixed light duration inconsistencies on into darkness
This commit is contained in:
@@ -215,7 +215,7 @@ challenges.no_herbalism_desc=There seems to be no clean water left in this accur
|
||||
challenges.swarm_intelligence=Swarm intelligence
|
||||
challenges.swarm_intelligence_desc=Watch out, the dungeon monsters are getting smarter!\n\n- When an enemy notices you, nearby enemies are drawn to that location
|
||||
challenges.darkness=Into darkness
|
||||
challenges.darkness_desc=It is a dungeon after all!\n\n- Regular visible distance dramatically reduced\n- A torch appears on each floor\n- Light buff lasts for less time
|
||||
challenges.darkness_desc=It is a dungeon after all!\n\n- Regular visible distance dramatically reduced\n- A torch appears on each floor\n- Other light sources are 1/5 as effective
|
||||
challenges.no_scrolls=Forbidden runes
|
||||
challenges.no_scrolls_desc=A certain rune is harder to find. Unfortunately, it's always the most useful one.\n\n- Half of the dungeon's upgrade scrolls are removed
|
||||
challenges.champion_enemies=Hostile champions
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
package com.shatteredpixel.shatteredpixeldungeon.actors.hero.abilities.mage;
|
||||
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Assets;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Challenges;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
||||
@@ -408,7 +409,11 @@ public class ElementalBlast extends ArmorAbility {
|
||||
|
||||
//*** Wand of Prismatic Light ***
|
||||
} else if (finalWandCls == WandOfPrismaticLight.class){
|
||||
Buff.prolong( hero, Light.class, effectMulti*50f);
|
||||
if (Dungeon.isChallenged(Challenges.DARKNESS)){
|
||||
Buff.prolong(hero, Light.class, effectMulti * 10f);
|
||||
} else {
|
||||
Buff.prolong(hero, Light.class, effectMulti * 50f);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user