blob: 50f433ed1678f84a71ca6e9400d7a7e51bdc8782 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package dulkirmod.features
import dulkirmod.DulkirMod
import dulkirmod.config.Config
import dulkirmod.utils.TabListUtils
import dulkirmod.utils.TitleUtils
import dulkirmod.utils.Utils
object MatchoAlert {
var hasSentAlert = false
fun alert() {
if (!Config.notifyMatcho) return
if (!Utils.isInSkyblock()) return
if (TabListUtils.area != "Crimson Isle") {
hasSentAlert = false
}
if (TabListUtils.explosivity && !hasSentAlert) {
val color = Utils.getColorString(Config.bestiaryNotifColor)
TitleUtils.drawStringForTime("${color}Matcho", 5000)
if (Config.bestiaryAlertSounds)
DulkirMod.mc.thePlayer.playSound("mob.villager.yes", 1f * Config.bestiaryNotifVol, 0f)
hasSentAlert = true
} else if (!TabListUtils.explosivity) hasSentAlert = false
}
}
|