en_us: v1.9.7.13's golden trinket effects (#917)
* en_us: added v1.9.7.13's golden trinket effects
Changes to the Rep+ File:
* Added trinket description for:
- "A Lighter"
* Updated the descriptions of:
- "Purple Heart"
- "Louse"
- "Karma"
- "Tonsil"
* Updated the "goldTrinketEffects" description of:
- "A Lighter"
* Added "goldenTrinketEffect" descriptions for:
- "Purple Heart"
- "Callus"
- "Paper Clip"
- "Mysterious Paper"
- "Daemon's Tail"
- "Broken Ankh"
- "Pinky Eye"
- "Push Pin"
- "Umbilical Cord"
- "Child's Heart"
- "Rusted Key"
- "Mom's Pearl"
- "Red Patch"
- "Match Stick"
- "Cursed Skull"
- "Safety Cap"
- "Ace of Spades"
- "Bloddy Penny"
- "Burnt Penny"
- "Flat Penny"
- "Counterfeit Penny"
- "Isaac's Head"
- "Judas' Tongue"
- "???'s Soul"
- "Samson's Lock"
- "Eve's Bird Foot"
- "The Left Hand"
- "Shiny Rock"
- "Safety Scissors"
- "Cracked Dice"
- "Super Magnet"
- "Louse"
- "Bob's Bladder"
- "Poker Chip"
- "Endless Nameless"
- "Store Key"
- "Rib of Greed"
- "Karma"
- "Mom's Locket"
- "Child Leash"
- "Meconium"
- "Used Diaper"
- "Fish Tail"
- "Black Tooth"
- "Tonsil"
- "Nose Goblin"
- "Super Ball"
- "Fragmented Card"
- "Equality!"
- "Wish Bone"
- "Bag Lunch"
- "Crow Heart"
- "Wallnut"
- "Duct Tape"
- "Silver Dollar"
- "Bloody Crown"
- "Pay To Win"
- "Locust of War"
- "Locust of Pestilence"
- "Locust of Famine"
- "Locust of Death"
- "Locust of Conquest"
- "Bat Wing"
- "Stem Cell"
- "Hairpin"
- "Wooden Cross"
- "Butter!"
- "Filigree Feather"
- "Door Stop"
- "Extension Cord"
- "Rotten Penny"
- "Baby-Bender"
- "Finger Bone"
- "Jawbreaker"
- "Chewed Pen"
- "Blessed Penny"
- "Short Fuse"
- "Gigante Bean"
- "A Lighter"
- "Broken Padlock"
- "Myosotis"
- "'M"
- "Apple of Sodom"
- "Forgotten Lullaby"
- "Brain Worm"
- "Devil’s Crown"
- "Charged Penny"
- "Friendship Necklace"
- "Panic Button"
- "Blue Key"
- "Flat File"
- "Telescope Lens"
- "Holy Crown"
- "Torn Card"
- "Torn Pocket"
- "Gilded Key"
- "Wicked Crown"
- "Nuh Uh!"
- "Polished Bone"
- "Keeper’s Bargain"
- "Cursed Penny"
- "Your Soul"
- "Number Magnet"
- "Strange Key"
- "Temporary Tattoo"
- "RC Remote"
- "Found Soul"
- "Expansion Pack"
- "Beth’s Essence"
- "Adoption Papers"
- "Ice Cube"
- "Sigil of Baphomet"
* en_us: expanded descriptions and minor corrections
Changes to the AB+ File:
* Updated the trinket descriptions of:
- "Samson's Lock"
- "Tonsil"
- "Nose Goblin"
- "Wooden Cross"
* en_us: Trinkets expanded info and minor corrections
Changes to the Rep File:
* Updated the trinket descriptions of:
- "Nose Goblin"
- "Crow Heart"
- "Forgotten Lullaby"
* en_us: Match Stick fix
* en_us: minor corrections
* Update eid_modifiers.lua
* remove s
* lowercase c, update gilded key icons
* Black Lipstick chance 5%
* Many changes to new golden trinket info
* Move Bulb info here
* Black Lipstick chance 10%
* Black Lipstick chance 10%
* Update eid_data.lua
* Toenail update, Samson's Lock update
* markup + minor tweaks
* Mom's Toenail: replaced"stomp" with "location"
* allow findReplace to be 2 entries
* these can be 2 entries again
* azazel stump 33%
* azazel stump 33 50 100
* added Rep+ GoldenTrinketData for some trinkets + organized rep GoldenTrinketData
* added "Super Ball" luck changes + moved some numerical trinket values to eid_data file
---------
Co-authored-by: Buurazu <excel_saga_rules@hotmail.com>
This commit is contained in:
1 parent
f79e3edbfb
commit
864273dee4
5 files changed
+462
-51
No files matched your search
@@ -607,30 +607,41 @@ if EID.isRepentance then
|
||||
end)
|
||||
count = count + numReplacements
|
||||
end
|
||||
--replacing a phrase, such as "half a heart"
|
||||
--replacing a phrase, such as "half a heart", with a double or tripled version
|
||||
--the table should be 3 entries long (can also be 6, 9, etc. for multiple find+replaces)
|
||||
--it can be 2 entries long if there's no triple effect
|
||||
--If you need to differentiate between Golden and Mom's, use fullReplace
|
||||
if data.findReplace then
|
||||
local textTable = EID:getDescriptionEntry("goldenTrinketEffects", trinketID)
|
||||
if textTable then
|
||||
descObj.Description, count = string.gsub(descObj.Description, textTable[1], "{{ColorGold}}" .. textTable[multiplier] .. "{{ColorText}}", 1)
|
||||
for i=1,#textTable,3 do
|
||||
local newText = textTable[math.min(i+multiplier-1, #textTable)]
|
||||
descObj.Description, count = string.gsub(descObj.Description, textTable[i], "{{ColorGold}}" .. newText .. "{{ColorText}}", 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
--append some new text to the description
|
||||
--the append table can be 1, 2, or 3 entries long (2 entries = double and triple, 3 entries = Golden, Mom's, Both)
|
||||
if data.append then
|
||||
local textTable = EID:getDescriptionEntry("goldenTrinketEffects", trinketID)
|
||||
if textTable then
|
||||
textChoice = math.min(textChoice, #textTable) -- some items have only 1 append description
|
||||
if #textTable == 2 and textChoice == 2 then textChoice = 1 -- some items have only 2 descriptions (double and triple), so Golden and Mom's should both choose text #1
|
||||
else textChoice = math.min(textChoice, #textTable) end -- some items have only 1 description
|
||||
|
||||
if textTable[textChoice] ~= "" then
|
||||
descObj.Description = descObj.Description .. "#{{ColorGold}}" .. textTable[textChoice]
|
||||
count = 1
|
||||
end
|
||||
end
|
||||
end
|
||||
--the nuclear option: replacing the entire description; 1 = Gold, 2 = Mom's Box, 3 = Both
|
||||
--the nuclear option: replacing the entire description; 1 = Golden, 2 = Mom's Box, 3 = Both
|
||||
--only replace if the chosen language has defined it
|
||||
if data.fullReplace then
|
||||
local textTable = EID:getDescriptionEntry("goldenTrinketEffects", trinketID, true)
|
||||
if (textTable) then
|
||||
textChoice = math.min(textChoice, #textTable)
|
||||
if #textTable == 2 and textChoice == 2 then textChoice = 1 -- some items have only 2 descriptions (double and triple), so Golden and Mom's should both choose text #1
|
||||
else textChoice = math.min(textChoice, #textTable) end -- some items have only 1 description
|
||||
|
||||
descObj.Description = textTable[textChoice]
|
||||
count = 1
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user