Skip to content

Commit

Permalink
Orb Walker gives upgraded Burns instead of Burns
Browse files Browse the repository at this point in the history
  • Loading branch information
kiooeht committed Apr 1, 2020
1 parent 616fd9f commit ddb0fcb
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ Humility is a difficulty mod that buffs (almost) every enemy in Slay the Spire w
* Starts with 2 Strength
* Orb Walker
* Starts with 2 Artifact
* Gives player upgraded Burns
* Shapes (Exploder)
* Starts with -1 turn on Explode
* Shapes (Repulsor)
Expand Down
25 changes: 25 additions & 0 deletions src/main/kotlin/patches/beyond/OrbWalkerBurnUpgrade.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package com.evacipated.cardcrawl.mod.humilty.patches.beyond

import com.evacipated.cardcrawl.modthespire.lib.SpirePatch
import com.megacrit.cardcrawl.cards.status.Burn
import com.megacrit.cardcrawl.monsters.beyond.OrbWalker
import javassist.expr.ExprEditor
import javassist.expr.NewExpr

@SpirePatch(
clz = OrbWalker::class,
method = "takeTurn"
)
class OrbWalkerBurnUpgrade {
companion object {
@JvmStatic
fun Instrument(): ExprEditor =
object : ExprEditor() {
override fun edit(e: NewExpr) {
if (e.className == Burn::class.qualifiedName) {
e.replace("\$_ = \$proceed(\$\$); \$_.upgrade();")
}
}
}
}
}

0 comments on commit ddb0fcb

Please sign in to comment.