aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/dulkirmod
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/dulkirmod')
-rw-r--r--src/main/kotlin/dulkirmod/config/Config.kt8
-rw-r--r--src/main/kotlin/dulkirmod/events/ChatEvent.kt8
-rw-r--r--src/main/kotlin/dulkirmod/features/DungeonLeap.kt2
-rw-r--r--src/main/kotlin/dulkirmod/features/ScalableTooltips.kt2
-rw-r--r--src/main/kotlin/dulkirmod/features/chat/VanquisherTrigger.kt13
5 files changed, 28 insertions, 5 deletions
diff --git a/src/main/kotlin/dulkirmod/config/Config.kt b/src/main/kotlin/dulkirmod/config/Config.kt
index 37d2ac1..11f4ea5 100644
--- a/src/main/kotlin/dulkirmod/config/Config.kt
+++ b/src/main/kotlin/dulkirmod/config/Config.kt
@@ -98,6 +98,14 @@ object Config : Vigilant(File("./config/dulkirmod/config.toml"), "DulkirMod", so
var throttleNotifier = true
@Property(
+ type = PropertyType.SWITCH,
+ name = "Vanquisher Broadcaster",
+ description = "sends patcher sendcoords msg when you spawn a vanquisher. might make this put a waypoint later",
+ category = "Random Beta Features"
+ )
+ var vanqBroadcast = false
+
+ @Property(
type = PropertyType.TEXT,
name = "Throttle Notifier String",
description = "How do you want to tell people you are throttled?",
diff --git a/src/main/kotlin/dulkirmod/events/ChatEvent.kt b/src/main/kotlin/dulkirmod/events/ChatEvent.kt
index 884e4cc..1b0f232 100644
--- a/src/main/kotlin/dulkirmod/events/ChatEvent.kt
+++ b/src/main/kotlin/dulkirmod/events/ChatEvent.kt
@@ -1,9 +1,6 @@
package dulkirmod.events
-import dulkirmod.features.chat.AbiphoneDND
-import dulkirmod.features.chat.Bridge
-import dulkirmod.features.chat.FakeMsg
-import dulkirmod.features.chat.ThrottleNotif
+import dulkirmod.features.chat.*
import dulkirmod.utils.Utils.stripColorCodes
import net.minecraftforge.client.event.ClientChatReceivedEvent
import net.minecraftforge.fml.common.eventhandler.EventPriority
@@ -33,5 +30,8 @@ class ChatEvent {
// FAKE MESSAGE SENDER (DULKIR ONLY)
FakeMsg.handle(event, unformatted)
+
+ // Quick vanquisher thing
+ VanquisherTrigger.handle(unformatted)
}
} \ No newline at end of file
diff --git a/src/main/kotlin/dulkirmod/features/DungeonLeap.kt b/src/main/kotlin/dulkirmod/features/DungeonLeap.kt
index 901c839..d1be829 100644
--- a/src/main/kotlin/dulkirmod/features/DungeonLeap.kt
+++ b/src/main/kotlin/dulkirmod/features/DungeonLeap.kt
@@ -19,7 +19,7 @@ class DungeonLeap {
val lastInLeap = inLeapMenuBool
if (!Config.highlightLeap) return
- if (mc.currentScreen == null || !(mc.currentScreen is GuiChest)) {
+ if (mc.currentScreen == null || mc.currentScreen !is GuiChest) {
inLeapMenuBool = false
return
}
diff --git a/src/main/kotlin/dulkirmod/features/ScalableTooltips.kt b/src/main/kotlin/dulkirmod/features/ScalableTooltips.kt
index a3ce2f1..e471849 100644
--- a/src/main/kotlin/dulkirmod/features/ScalableTooltips.kt
+++ b/src/main/kotlin/dulkirmod/features/ScalableTooltips.kt
@@ -5,6 +5,7 @@ import net.minecraft.client.Minecraft
import net.minecraft.client.gui.FontRenderer
import net.minecraft.client.renderer.GlStateManager
import net.minecraft.client.renderer.RenderHelper
+import net.minecraft.item.ItemStack
import net.minecraftforge.fml.client.config.GuiUtils
import org.lwjgl.input.Keyboard
import org.lwjgl.input.Mouse
@@ -15,6 +16,7 @@ object ScalableTooltips {
// Checks to see if large tooltips should be snapped (for larger than can fit on screen code)
var snapFlag: Boolean = true
var scaleScale: Float = 0f
+ var previousStack: ItemStack? = null
fun drawScaledHoveringText(
textLines: List<String>,
diff --git a/src/main/kotlin/dulkirmod/features/chat/VanquisherTrigger.kt b/src/main/kotlin/dulkirmod/features/chat/VanquisherTrigger.kt
new file mode 100644
index 0000000..c7d4349
--- /dev/null
+++ b/src/main/kotlin/dulkirmod/features/chat/VanquisherTrigger.kt
@@ -0,0 +1,13 @@
+package dulkirmod.features.chat
+
+import dulkirmod.DulkirMod
+import dulkirmod.config.Config
+
+object VanquisherTrigger {
+ fun handle(message: String) {
+ if (!Config.vanqBroadcast) return
+ if (message == "A Vanquisher is spawning nearby!") {
+ DulkirMod.mc.thePlayer.sendChatMessage("/patcher sendcoords")
+ }
+ }
+} \ No newline at end of file