noot
This commit is contained in:
parent
e8a37207f0
commit
eed7d950ea
@ -0,0 +1,4 @@
|
|||||||
|
package org.tux.wynnreporter.client.help
|
||||||
|
|
||||||
|
class tonfa {
|
||||||
|
}
|
||||||
@ -5,6 +5,8 @@ import kotlinx.coroutines.channels.onFailure
|
|||||||
import net.minecraft.client.MinecraftClient
|
import net.minecraft.client.MinecraftClient
|
||||||
import net.minecraft.client.gui.screen.Screen
|
import net.minecraft.client.gui.screen.Screen
|
||||||
import net.minecraft.client.gui.screen.ingame.GenericContainerScreen
|
import net.minecraft.client.gui.screen.ingame.GenericContainerScreen
|
||||||
|
import net.minecraft.entity.LivingEntity
|
||||||
|
import net.minecraft.item.ItemStack
|
||||||
import org.tux.wynnreporter.Wynnreporter
|
import org.tux.wynnreporter.Wynnreporter
|
||||||
import org.tux.wynnreporter.client.structs.InventoryPayload
|
import org.tux.wynnreporter.client.structs.InventoryPayload
|
||||||
import org.tux.wynnreporter.client.structs.InventoryPayloadItem
|
import org.tux.wynnreporter.client.structs.InventoryPayloadItem
|
||||||
@ -23,6 +25,7 @@ class InventoryReader(
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
val itemList = mutableListOf<InventoryPayloadItem>()
|
val itemList = mutableListOf<InventoryPayloadItem>()
|
||||||
// iterate over size
|
// iterate over size
|
||||||
for(i in 0 until inventory.size()) {
|
for(i in 0 until inventory.size()) {
|
||||||
@ -32,6 +35,7 @@ class InventoryReader(
|
|||||||
}
|
}
|
||||||
val item = stack.item;
|
val item = stack.item;
|
||||||
val components = stack.components
|
val components = stack.components
|
||||||
|
item.get
|
||||||
val componentMap = mutableMapOf<String, String>()
|
val componentMap = mutableMapOf<String, String>()
|
||||||
components.forEach { component ->
|
components.forEach { component ->
|
||||||
componentMap[component.type.toString()] = component.value.toString()
|
componentMap[component.type.toString()] = component.value.toString()
|
||||||
|
|||||||
@ -3,7 +3,6 @@ import { type } from "arktype";
|
|||||||
|
|
||||||
const con = initContract();
|
const con = initContract();
|
||||||
|
|
||||||
|
|
||||||
const ingameauth = con.router({
|
const ingameauth = con.router({
|
||||||
challenge: {
|
challenge: {
|
||||||
description: "generate a challenge for the client to solve",
|
description: "generate a challenge for the client to solve",
|
||||||
|
|||||||
@ -8,7 +8,8 @@ import * as md from 'ts-markdown-builder';
|
|||||||
export const formGuildInfoMessage = async (guild_id: string, sql:Sql): Promise<CreateMessageOptions & InteractionCallbackOptions> => {
|
export const formGuildInfoMessage = async (guild_id: string, sql:Sql): Promise<CreateMessageOptions & InteractionCallbackOptions> => {
|
||||||
const result = await sql`
|
const result = await sql`
|
||||||
|
|
||||||
with ranked as (select
|
with ranked as (
|
||||||
|
select
|
||||||
uid,
|
uid,
|
||||||
name,
|
name,
|
||||||
prefix,
|
prefix,
|
||||||
@ -16,8 +17,9 @@ with ranked as (select
|
|||||||
xp,
|
xp,
|
||||||
territories,
|
territories,
|
||||||
wars,
|
wars,
|
||||||
rank() over (order by xp desc) as xp_rank
|
dense_rank() over (order by level desc, xp desc) as xp_rank
|
||||||
from wynn.guild_info
|
from wynn.guild_info
|
||||||
|
where level is not null
|
||||||
)
|
)
|
||||||
select * from ranked
|
select * from ranked
|
||||||
where ranked.uid = ${guild_id}
|
where ranked.uid = ${guild_id}
|
||||||
@ -36,7 +38,7 @@ where ranked.uid = ${guild_id}
|
|||||||
md.heading("overview"),
|
md.heading("overview"),
|
||||||
`[${guild.prefix}] ${guild.name}
|
`[${guild.prefix}] ${guild.name}
|
||||||
level: ${guild.level}
|
level: ${guild.level}
|
||||||
guild xp rank: ${guild.xp_rank === 1000 ? "1000+" : guild.xp_rank}
|
guild xp rank: ${guild.xp_rank >= 1000 ? "1000+" : guild.xp_rank}
|
||||||
xp: ${guild.xp}
|
xp: ${guild.xp}
|
||||||
territories: ${guild.territories}
|
territories: ${guild.territories}
|
||||||
wars: ${guild.wars}`,
|
wars: ${guild.wars}`,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user