hh_lol_prophet

package module
v0.0.0-...-44a0b5b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 34 Imported by: 0

README

lol 对局先知

等tx允许查询战绩再更新此项目.战绩都不让查 玩个蛇

qq 群: 102158075

网站: https://lol.buffge.com

下载地址

程序逻辑
  • 监控lol client
    • 存在 -> 开始监听游戏事件
    • 不存在 -> 关闭游戏事件监视器
游戏事件监听器
  • 监听lol事件
  • 如果进入英雄选择阶段 则进入分析程序
分析程序:
  • 获取队伍所有用户信息
    • 查询每个用户最近20局战绩并计算得分
  • 根据所有用户的分数判断小代上等马中等马下等马
  • 发送到选人界面

特性

  • 自动更新
  • 自动接受对局
  • 自动ban pick
  • 查询用户马匹信息

计分规则

开发计划

  • 优化算法

    • 根据对位数据差 计分
    • 对特定位置 计算特定指标 如 对打野计算参团率 如低于50% 扣分
    • 服务端 -上报计算数据 每一局 每个人kda 实际得分
    • gui
      • 有gui后考虑加上有趣的功能
  • 优化lol.buffge.com网站

  • 配置:

    • 遇到特定用户 发送特定消息 比如 "遇霸不秒退,十五两行累" "西内!" "小心家猪野猪"

🔋 JetBrains 开源证书支持

hh-lol-prophet 项目一直以来都是在 JetBrains 公司旗下的 GoLand 集成开发环境中进行开发,基于 free JetBrains Open Source license(s) 正版免费授权,在此表达我的谢意。

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SendConversationMsg   = lcu.SendConversationMsg
	ListConversationMsg   = lcu.ListConversationMsg
	GetCurrConversationID = lcu.GetCurrConversationID
	QuerySummoner         = lcu.QuerySummoner
	QueryGameSummary      = lcu.QueryGameSummary
	ListGamesBySummonerID = lcu.ListGamesBySummonerID
)
View Source
var (
	APPVersion = "0.2.3"
	Commit     = "dev"
	BuildTime  = ""
	BuildUser  = ""
)

Functions

func GetUserScore

func GetUserScore(summonerID int64) (*lcu.UserScore, error)

func RegisterRoutes

func RegisterRoutes(r *gin.Engine, api *Api)

Types

type Api

type Api struct {
	// contains filtered or unexported fields
}

func (Api) CopyHorseMsgToClipBoard

func (api Api) CopyHorseMsgToClipBoard(c *gin.Context)

func (Api) DevHand

func (api Api) DevHand(c *gin.Context)

func (Api) GetAllConf

func (api Api) GetAllConf(c *gin.Context)

func (Api) GetAppInfo

func (api Api) GetAppInfo(c *gin.Context)

func (Api) GetLcuAuthInfo

func (api Api) GetLcuAuthInfo(c *gin.Context)

func (Api) ProphetActiveMid

func (api Api) ProphetActiveMid(c *gin.Context)

func (Api) QueryHorseBySummonerName

func (api Api) QueryHorseBySummonerName(c *gin.Context)

func (Api) UpdateClientConf

func (api Api) UpdateClientConf(c *gin.Context)

type ApplyOption

type ApplyOption func(o *options)

func WithDebug

func WithDebug() ApplyOption

func WithEnablePprof

func WithEnablePprof(enablePprof bool) ApplyOption

func WithHttpAddr

func WithHttpAddr(httpAddr string) ApplyOption

func WithProd

func WithProd() ApplyOption

type GameState

type GameState string
const (
	GameStateNone        GameState = "none"
	GameStateChampSelect GameState = "champSelect"
	GameStateReadyCheck  GameState = "ReadyCheck"
	GameStateInGame      GameState = "inGame"
	GameStateOther       GameState = "other"
	GameStateMatchmaking GameState = "Matchmaking"
)

gameState

type Prophet

type Prophet struct {
	GameState GameState
	// contains filtered or unexported fields
}

func NewProphet

func NewProphet(opts ...ApplyOption) *Prophet

func (*Prophet) AcceptGame

func (p *Prophet) AcceptGame()

func (*Prophet) CalcEnemyTeamScore

func (p *Prophet) CalcEnemyTeamScore()

func (*Prophet) ChampionSelectStart

func (p *Prophet) ChampionSelectStart()

func (*Prophet) MonitorStart

func (p *Prophet) MonitorStart()

func (*Prophet) Run

func (p *Prophet) Run() error

func (*Prophet) SetupFakerOffline

func (p *Prophet) SetupFakerOffline() error

func (*Prophet) Stop

func (p *Prophet) Stop() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL