Documentation ¶
Index ¶
- Variables
- func BuyHandle(s *discordgo.Session, m *discordgo.MessageCreate)
- func CheckPlayer(user *discordgo.User)
- func CombatHandle(s *discordgo.Session, m *discordgo.MessageCreate)
- func CombatNPC(s *discordgo.Session, m *discordgo.MessageCreate, p *player, n *NPC)
- func DamageCalc(hp *int, atk int, def int, crt int, eva int) (bool, bool, int)
- func DungeonHandle(s *discordgo.Session, m *discordgo.MessageCreate)
- func Equip(user *discordgo.User, itemID int) bool
- func EquipHandle(s *discordgo.Session, m *discordgo.MessageCreate)
- func EquipmentHandle(s *discordgo.Session, m *discordgo.MessageCreate)
- func FarmHandle(s *discordgo.Session, m *discordgo.MessageCreate)
- func HelpHandle(s *discordgo.Session, m *discordgo.MessageCreate)
- func Hit(s *discordgo.Session, m **discordgo.Message, chanID *string, p1 *player, ...) bool
- func HitNPC(s *discordgo.Session, m *discordgo.Message, p *player, n *NPC, hpp *int, ...) bool
- func InitDungeon()
- func InitItem()
- func InitNPC()
- func InventoryHandle(s *discordgo.Session, m *discordgo.MessageCreate)
- func LoadData()
- func Loop(s *discordgo.Session)
- func Max(x, y int) int
- func MessageCreate(s *discordgo.Session, m *discordgo.MessageCreate)
- func MessageHandle(s *discordgo.Session, m *discordgo.MessageCreate)
- func Min(x, y int) int
- func NPCHandle(s *discordgo.Session, m *discordgo.MessageCreate)
- func RNG(x int) bool
- func RecalcStats(p *player)
- func SaveData()
- func SellHandle(s *discordgo.Session, m *discordgo.MessageCreate)
- func ShopHandle(s *discordgo.Session, m *discordgo.MessageCreate)
- func StatsHandle(s *discordgo.Session, m *discordgo.MessageCreate)
- func Unequip(user *discordgo.User, SlotID int) bool
- func UnequipHandle(s *discordgo.Session, m *discordgo.MessageCreate)
- type NPC
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NPCs = make(map[int]*NPC)
)
Functions ¶
func CheckPlayer ¶
func CombatHandle ¶
func CombatHandle(s *discordgo.Session, m *discordgo.MessageCreate)
func CombatNPC ¶
func CombatNPC(s *discordgo.Session, m *discordgo.MessageCreate, p *player, n *NPC)
func DungeonHandle ¶
func DungeonHandle(s *discordgo.Session, m *discordgo.MessageCreate)
func EquipHandle ¶
func EquipHandle(s *discordgo.Session, m *discordgo.MessageCreate)
func EquipmentHandle ¶
func EquipmentHandle(s *discordgo.Session, m *discordgo.MessageCreate)
func FarmHandle ¶
func FarmHandle(s *discordgo.Session, m *discordgo.MessageCreate)
func HelpHandle ¶
func HelpHandle(s *discordgo.Session, m *discordgo.MessageCreate)
func InitDungeon ¶
func InitDungeon()
func InventoryHandle ¶
func InventoryHandle(s *discordgo.Session, m *discordgo.MessageCreate)
func MessageCreate ¶
func MessageCreate(s *discordgo.Session, m *discordgo.MessageCreate)
func MessageHandle ¶
func MessageHandle(s *discordgo.Session, m *discordgo.MessageCreate)
func RecalcStats ¶
func RecalcStats(p *player)
func SellHandle ¶
func SellHandle(s *discordgo.Session, m *discordgo.MessageCreate)
func ShopHandle ¶
func ShopHandle(s *discordgo.Session, m *discordgo.MessageCreate)
func StatsHandle ¶
func StatsHandle(s *discordgo.Session, m *discordgo.MessageCreate)
func UnequipHandle ¶
func UnequipHandle(s *discordgo.Session, m *discordgo.MessageCreate)
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.