From 575d3475e9942a1dcddddc49778d2b981017b0d1 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 2 Apr 2021 16:06:08 -0400 Subject: [PATCH] v0.9.3: implemented baseline functionality for new bosses challenge --- core/src/main/assets/messages/misc/misc.properties | 2 ++ .../shatteredpixel/shatteredpixeldungeon/Challenges.java | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/core/src/main/assets/messages/misc/misc.properties b/core/src/main/assets/messages/misc/misc.properties index 82c5c8a9c..375f7ccd1 100644 --- a/core/src/main/assets/messages/misc/misc.properties +++ b/core/src/main/assets/messages/misc/misc.properties @@ -85,5 +85,7 @@ 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 upgrades scrolls are removed challenges.champion_enemies=Hostile champions challenges.champion_enemies_desc=You're not the only one who can level up!\n\n- Regular enemies have a 1/8 chance to spawn with a special champion buff.\n- Champions wake up if they spawn asleep\n- The hero knows when a champion spawns\n- Champions are immune to corruption\n\nThere are six types of champion enemy:\n_Blazing (orange):_ +25% melee damage, ignites on hit, immune to fire, spreads flames on death\n_Projecting (purple):_ +25% melee damage, can attack anything they see\n_Antimagic (green):_ -25% damage taken, immune to magical effects\n_Giant (blue):_ -75% damage taken, +1 melee range, cannot move into tunnels\n_Blessed (yellow):_ +200% accuracy, +200% evasion\n_Growing (red):_ +20% accuracy, evasion, damage, and effective HP. Increases by 1% every 3 turns. +challenges.stronger_bosses=Badder bosses +challenges.stronger_bosses_desc=TODO rankings$record.something=Killed by Something diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/Challenges.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/Challenges.java index 225bed431..348d6250d 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/Challenges.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/Challenges.java @@ -35,11 +35,13 @@ public class Challenges { public static final int DARKNESS = 32; public static final int NO_SCROLLS = 64; public static final int CHAMPION_ENEMIES = 128; + public static final int STRONGER_BOSSES = 256; - public static final int MAX_VALUE = 255; + public static final int MAX_VALUE = 511; public static final String[] NAME_IDS = { "champion_enemies", + "stronger_bosses", "no_food", "no_armor", "no_healing", @@ -50,7 +52,7 @@ public class Challenges { }; public static final int[] MASKS = { - CHAMPION_ENEMIES, NO_FOOD, NO_ARMOR, NO_HEALING, NO_HERBALISM, SWARM_INTELLIGENCE, DARKNESS, NO_SCROLLS + CHAMPION_ENEMIES, STRONGER_BOSSES, NO_FOOD, NO_ARMOR, NO_HEALING, NO_HERBALISM, SWARM_INTELLIGENCE, DARKNESS, NO_SCROLLS }; public static int activeChallenges(){