-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Phase 4 Shaman badge totems
- Loading branch information
Showing
3 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |