Skip to content

Commit

Permalink
Implement Phase 4 Shaman badge totems
Browse files Browse the repository at this point in the history
  • Loading branch information
secretbis committed Apr 7, 2022
1 parent f153a49 commit c56d8f7
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/commonMain/kotlin/data/buffs/Buffs.kt
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ object Buffs {
41040 -> TotemOfAncestralGuidance()
42083 -> TsunamiTalisman()
43716 -> BerserkersCall()
43748 -> ElementalStrength()
43750 -> Energized()
45354 -> ShardOfContempt()
45355 -> BlackenedNaaruSliver()
51953 -> DarkIronPipeweed()
Expand Down
42 changes: 42 additions & 0 deletions src/commonMain/kotlin/data/buffs/ElementalStrength.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
package data.buffs

import character.*
import data.model.Item
import sim.Event
import sim.SimParticipant

class ElementalStrength : Buff() {
companion object {
const val name = "Elemental Strength"
}

override val name: String = "${Companion.name} (static)"
override val icon: String = "spell_nature_earthquake.jpg"
override val durationMs: Int = -1
override val hidden: Boolean = true

val buff = object : Buff() {
override val name: String = Companion.name
override val durationMs: Int = 10000
override val icon: String = "spell_nature_earthquake.jpg"

override fun modifyStats(sp: SimParticipant): Stats {
return Stats(
attackPower = 110
)
}
}

val proc = object : Proc() {
override val triggers: List<Trigger> = listOf(Trigger.SHAMAN_CAST_SHOCK)
override val type: Type = Type.PERCENT
override fun percentChance(sp: SimParticipant): Double = 50.0
override fun cooldownMs(sp: SimParticipant): Int = 10000

override fun proc(sp: SimParticipant, items: List<Item>?, ability: Ability?, event: Event?) {
sp.addBuff(buff)
}
}

override fun procs(sp: SimParticipant): List<Proc> = listOf(proc)
}
41 changes: 41 additions & 0 deletions src/commonMain/kotlin/data/buffs/Energized.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
package data.buffs

import character.*
import data.model.Item
import sim.Event
import sim.SimParticipant

class Energized : Buff() {
companion object {
const val name = "Energized"
}

override val name: String = "${Companion.name} (static)"
override val icon: String = "spell_nature_callstorm.jpg"
override val durationMs: Int = -1
override val hidden: Boolean = true

val buff = object : Buff() {
override val name: String = Companion.name
override val durationMs: Int = 10000
override val icon: String = "spell_nature_callstorm.jpg"

override fun modifyStats(sp: SimParticipant): Stats {
return Stats(
spellHasteRating = 110.0
)
}
}

val proc = object : Proc() {
override val triggers: List<Trigger> = listOf(Trigger.SHAMAN_CAST_LIGHTNING_BOLT)
override val type: Type = Type.PERCENT
override fun percentChance(sp: SimParticipant): Double = 15.0

override fun proc(sp: SimParticipant, items: List<Item>?, ability: Ability?, event: Event?) {
sp.addBuff(buff)
}
}

override fun procs(sp: SimParticipant): List<Proc> = listOf(proc)
}

0 comments on commit c56d8f7

Please sign in to comment.