v2.4.0: implemented upgrade costs for existing trinkets

This commit is contained in:
Evan Debenham
2024-04-19 11:29:26 -04:00
parent 03b6d4363c
commit e279e3c26d
9 changed files with 20 additions and 12 deletions

View File

@@ -1298,16 +1298,16 @@ items.stones.stoneofshock.desc=This runestone unleashes a blast of electrical en
###trinkets
items.trinkets.dimensionalsundial.name=dimensional sundial
items.trinkets.dimensionalsundial.warning=Your sundial isn't casting a shadow, you feel uneasy.
items.trinkets.dimensionalsundial.desc=This small handheld sundial is somehow able to cast a shadow in the depths of the dungeon, even if you aren't holding it upright. Even more strangely, the shadow's position seems to have no relation to the sun in this world. When no shadow is cast, the sundial seems to attract danger.\n\nAt its current level, this trinket will increase the spawning rate of enemies by _%d%%_ when it is nighttime in real life (9pm to 7am).
items.trinkets.dimensionalsundial.desc=This small handheld sundial is somehow able to cast a shadow in the depths of the dungeon, even if you aren't holding it upright. Even more strangely, the shadow's position seems to have no relation to the sun in this world. When no shadow is cast, the sundial seems to attract danger.\n\nAt its current level, this trinket will increase the spawning rate of enemies by _%d%%_ when it is nighttime in real life (9pm to 7am).\n\nThis trinket costs relatively little energy to upgrade.
items.trinkets.exoticcrystals.name=exotic crystals
items.trinkets.exoticcrystals.desc=These small pink crystals have the same shape as crystals of alchemical energy. While they can't be used for energy directly, they seem to be somehow influencing the potions and scrolls you find.\n\nAt its current level this trinket will replace %d%% of potion or scroll drops with their exotic equivalents. This does not affect potions of strength, scrolls of upgrade, or items that are generated to help solve hazard rooms.
items.trinkets.mossyclump.name=mossy clump
items.trinkets.mossyclump.desc=This clump of wet moss seems to hold onto its moisture no matter how hard you squeeze it. It seems to be magically tied to the dungeon itself, making grass and water more likely to appear.\n\nAt its current level this trinket will make %d%% of regular floors become filled with either water or grass instead.
items.trinkets.mossyclump.desc=This clump of wet moss seems to hold onto its moisture no matter how hard you squeeze it. It seems to be magically tied to the dungeon itself, making grass and water more likely to appear.\n\nAt its current level this trinket will make %d%% of regular floors become filled with either water or grass instead.\n\nThis trinket costs a relatively large amount of energy to upgrade.
items.trinkets.parchmentscrap.name=parchment scrap
items.trinkets.parchmentscrap.desc=This little scrap of parchment looks like it came from a scroll. It has retained some of its magic, and it seems to be influencing weapons and armor found in the dungeon.\n\nAt its current level this trinket will make enchantments and glyphs _%dx_ as common, and curses on weapons and armor _%sx_ as common. Curses on wands, rings, or artifacts are not affected.
items.trinkets.parchmentscrap.desc=This little scrap of parchment looks like it came from a scroll. It has retained some of its magic, and it seems to be influencing weapons and armor found in the dungeon.\n\nAt its current level this trinket will make enchantments and glyphs _%dx_ as common, and curses on weapons and armor _%sx_ as common. Curses on wands, rings, or artifacts are not affected.\n\nThis trinket costs a relatively large amount of energy to upgrade.
items.trinkets.petrifiedseed.name=petrified seed
items.trinkets.petrifiedseed.desc=This seed has been fossilised, either by slow geological processes or by magic. The seed seems to be magically influencing the flora of the dungeon, occasionally replacing plant seeds with runestones.\n\nAt its current level this trinket will cause trampled grass to drop runestones instead of seeds _%1$d%%_ of the time, and will also cause high grass to drop items _%2$d%%_ more often.
@@ -1316,7 +1316,7 @@ items.trinkets.ratskull.name=rat skull
items.trinkets.ratskull.desc=This macabre trinket isn't much larger than the skull of a normal rat, which is somehow a rarity down in this dungeon. The skull's magical influence seems to attract the more rare denizens of the dungeon, making them appear far more often.\n\nAt its current level this trinket will make rare exotic enemies _%dx_ as likely to appear. The skull is only half as effective at attracting crystal mimics and armored statues, however.
items.trinkets.thirteenleafclover.name=thirteen leaf clover
items.trinkets.thirteenleafclover.desc=Somehow stewing in the alchemy pot has caused this clover to grow a bunch of extra leaves! It's not really clear if this trinket is lucky or unlucky, perhaps this trinket will make your luck more chaotic?\n\nNormally when dealing or blocking damage, the game makes numbers closer to the average more common. At its current level this trinket has a _%d%%_ chance to invert this, making numbers closer to the maximum or minimum more likely to appear instead.
items.trinkets.thirteenleafclover.desc=Somehow stewing in the alchemy pot has caused this clover to grow a bunch of extra leaves! It's not really clear if this trinket is lucky or unlucky, perhaps this trinket will make your luck more chaotic?\n\nNormally when dealing or blocking damage, the game makes numbers closer to the average more common. At its current level this trinket has a _%d%%_ chance to invert this, making numbers closer to the maximum or minimum more likely to appear instead.\n\nThis trinket costs relatively little energy to upgrade.
items.trinkets.trapmechanism.name=trap mechanism
items.trinkets.trapmechanism.desc=The core mechanism of one of the dungeon's pitfall traps, carefully carved out of the floor so it can be carried. It seems to be magically tied to the dungeon itself, making terrain more hazardous for you and the dungeon's inhabitants.\n\nAt its current level this trinket will make _%d%%_ of regular floors become filled with either traps or chasms instead.

View File

@@ -37,7 +37,8 @@ public class DimensionalSundial extends Trinket {
@Override
protected int upgradeEnergyCost() {
return 1+level(); //TODO
//5 -> 5(10) -> 7(17) -> 8(25)
return Math.round(5+1.67f*level());
}
@Override

View File

@@ -32,7 +32,8 @@ public class ExoticCrystals extends Trinket {
@Override
protected int upgradeEnergyCost() {
return 1 + level(); //TODO
//5 -> 8(13) -> 10(23) -> 12(35)
return 6+2*level();
}
@Override

View File

@@ -38,7 +38,8 @@ public class MossyClump extends Trinket {
@Override
protected int upgradeEnergyCost() {
return 1 + level(); //TODO
//5 -> 10(15) -> 15(30) -> 20(50)
return 10+5*level();
}
@Override

View File

@@ -32,7 +32,8 @@ public class ParchmentScrap extends Trinket {
@Override
protected int upgradeEnergyCost() {
return 1 + level(); //TODO
//5 -> 10(15) -> 15(30) -> 20(50)
return 10+5*level();
}
@Override

View File

@@ -32,7 +32,8 @@ public class PetrifiedSeed extends Trinket {
@Override
protected int upgradeEnergyCost() {
return 1 + level(); //TODO
//5 -> 8(13) -> 10(23) -> 12(35)
return 6+2*level();
}
@Override

View File

@@ -32,7 +32,8 @@ public class RatSkull extends Trinket {
@Override
protected int upgradeEnergyCost() {
return 1 + level(); //TODO
//5 -> 8(13) -> 10(23) -> 12(35)
return 6+2*level();
}
@Override

View File

@@ -33,7 +33,8 @@ public class ThirteenLeafClover extends Trinket {
@Override
protected int upgradeEnergyCost() {
return 1+level(); //TODO
//5 -> 5(10) -> 7(17) -> 8(25)
return Math.round(5+1.67f*level());
}
@Override

View File

@@ -38,7 +38,8 @@ public class TrapMechanism extends Trinket {
@Override
protected int upgradeEnergyCost() {
return 1+level(); //TODO
//5 -> 8(13) -> 10(23) -> 12(35)
return 6+2*level();
}
@Override