Documentation ¶
Index ¶
- Constants
- Variables
- func GiantMole(s *discordgo.Session, i *discordgo.InteractionCreate)
- func Graardor(s *discordgo.Session, i *discordgo.InteractionCreate)
- func Gregorovic(s *discordgo.Session, i *discordgo.InteractionCreate)
- func Helwyr(s *discordgo.Session, i *discordgo.InteractionCreate)
- func Kreearra(s *discordgo.Session, i *discordgo.InteractionCreate)
- func Kril(s *discordgo.Session, i *discordgo.InteractionCreate)
- func Nex(s *discordgo.Session, i *discordgo.InteractionCreate)
- func Raksha(s *discordgo.Session, i *discordgo.InteractionCreate)
- func Twinfuries(s *discordgo.Session, i *discordgo.InteractionCreate)
- func Vindicta(s *discordgo.Session, i *discordgo.InteractionCreate)
- func Vorago(s *discordgo.Session, i *discordgo.InteractionCreate)
- func Zilyana(s *discordgo.Session, i *discordgo.InteractionCreate)
- type Drop
- type DropFunc
Constants ¶
View Source
const ( UncommonRateWithoutRare float64 = 1.0 / 3.0 MAX_AMOUNT_ROLLS = 1000 )
Variables ¶
View Source
var GiantMoleCommand = &discordgo.ApplicationCommand{ Name: "giantmole", Description: "Simulate a Giant Mole drop. Warning: little is known about the droprate, it's not very reliable", Options: []*discordgo.ApplicationCommandOption{ { Type: discordgo.ApplicationCommandOptionInteger, Name: "amount", Description: "Amount of kills", Required: false, }, { Type: discordgo.ApplicationCommandOptionBoolean, Name: "enable-guarantees", Description: "Set to false to remove the guaranteed drops", Required: false, }, { Type: discordgo.ApplicationCommandOptionBoolean, Name: "faladorshield-4", Description: "Set to false if you do not have Falador Shield 4 unlocked", Required: false, }, }, }
View Source
var GraardorCommand = &discordgo.ApplicationCommand{ Name: "graardor", Description: "Simulate a General Graardor drop", Options: []*discordgo.ApplicationCommandOption{ { Type: discordgo.ApplicationCommandOptionInteger, Name: "amount", Description: "Amount of kills", Required: false, }, { Type: discordgo.ApplicationCommandOptionBoolean, Name: "enable-guarantees", Description: "Set to false to remove the guaranteed drops", Required: false, }, }, }
View Source
var GregorovicCommand = &discordgo.ApplicationCommand{ Name: "gregorovic", Description: "Simulate a Gregorovic drop with full reputation", Options: []*discordgo.ApplicationCommandOption{ { Type: discordgo.ApplicationCommandOptionInteger, Name: "amount", Description: "Amount of kills", Required: false, }, { Type: discordgo.ApplicationCommandOptionBoolean, Name: "enable-guarantees", Description: "Set to false to remove the guaranteed drops", Required: false, }, }, }
View Source
var HelwyrCommand = &discordgo.ApplicationCommand{ Name: "helwyr", Description: "Simulate a Helwyr drop with full reputation", Options: []*discordgo.ApplicationCommandOption{ { Type: discordgo.ApplicationCommandOptionInteger, Name: "amount", Description: "Amount of kills", Required: false, }, { Type: discordgo.ApplicationCommandOptionBoolean, Name: "enable-guarantees", Description: "Set to false to remove the guaranteed drops", Required: false, }, }, }
View Source
var KreearraCommand = &discordgo.ApplicationCommand{ Name: "kreearra", Description: "Simulate a Command Kreearra drop", Options: []*discordgo.ApplicationCommandOption{ { Type: discordgo.ApplicationCommandOptionInteger, Name: "amount", Description: "Amount of kills", Required: false, }, { Type: discordgo.ApplicationCommandOptionBoolean, Name: "enable-guarantees", Description: "Set to false to remove the guaranteed drops", Required: false, }, }, }
View Source
var KrilCommand = &discordgo.ApplicationCommand{ Name: "kril", Description: "Simulate a General Kril drop", Options: []*discordgo.ApplicationCommandOption{ { Type: discordgo.ApplicationCommandOptionInteger, Name: "amount", Description: "Amount of kills", Required: false, }, { Type: discordgo.ApplicationCommandOptionBoolean, Name: "enable-guarantees", Description: "Set to false to remove the guaranteed drops", Required: false, }, }, }
View Source
var NexCommand = &discordgo.ApplicationCommand{ Name: "nex", Description: "Simulate a Nex drop with full reputation", Options: []*discordgo.ApplicationCommandOption{ { Type: discordgo.ApplicationCommandOptionInteger, Name: "amount", Description: "Amount of kills", Required: false, }, { Type: discordgo.ApplicationCommandOptionBoolean, Name: "enable-guarantees", Description: "Set to false to remove the guaranteed drops", Required: false, }, }, }
View Source
var ( RakshaCommand = &discordgo.ApplicationCommand{ Name: "raksha", Description: "Simulate a raksha drop", Options: []*discordgo.ApplicationCommandOption{ { Type: discordgo.ApplicationCommandOptionInteger, Name: "amount", Description: "Amount of kills", Required: false, }, }, } )
View Source
var TwinfuriesCommand = &discordgo.ApplicationCommand{ Name: "twinfuries", Description: "Simulate a Twin Furies drop with full reputation", Options: []*discordgo.ApplicationCommandOption{ { Type: discordgo.ApplicationCommandOptionInteger, Name: "amount", Description: "Amount of kills", Required: false, }, { Type: discordgo.ApplicationCommandOptionBoolean, Name: "enable-guarantees", Description: "Set to false to remove the guaranteed drops", Required: false, }, }, }
View Source
var VindictaCommand = &discordgo.ApplicationCommand{ Name: "vindicta", Description: "Simulate a vindicta drop with full reputation", Options: []*discordgo.ApplicationCommandOption{ { Type: discordgo.ApplicationCommandOptionInteger, Name: "amount", Description: "Amount of kills", Required: false, }, { Type: discordgo.ApplicationCommandOptionBoolean, Name: "enable-guarantees", Description: "Set to false to remove the guaranteed drops", Required: false, }, }, }
View Source
var VoragoCommand = &discordgo.ApplicationCommand{ Name: "vorago", Description: "Simulate a Vorago team drop. This simulates all 5 piles.", Options: []*discordgo.ApplicationCommandOption{ { Type: discordgo.ApplicationCommandOptionInteger, Name: "amount", Description: "Amount of kills", Required: false, }, }, }
View Source
var ZilyanaCommand = &discordgo.ApplicationCommand{ Name: "zilyana", Description: "Simulate a Command Zilyana drop", Options: []*discordgo.ApplicationCommandOption{ { Type: discordgo.ApplicationCommandOptionInteger, Name: "amount", Description: "Amount of kills", Required: false, }, { Type: discordgo.ApplicationCommandOptionBoolean, Name: "enable-guarantees", Description: "Set to false to remove the guaranteed drops", Required: false, }, }, }
Functions ¶
func Gregorovic ¶
func Gregorovic(s *discordgo.Session, i *discordgo.InteractionCreate)
func Twinfuries ¶
func Twinfuries(s *discordgo.Session, i *discordgo.InteractionCreate)
Types ¶
type Drop ¶
type Drop struct { Rate float64 Id string Name string Untradeable bool AmountRange [2]int Amount int Amounts []int // If there are only certain specified amounts OtherDrops []Drop // Other drops that always go with this drop SameAmount bool // Only applicable to a drop in OtherDrops: whether this drop should get the same amount as the other one Bold bool // Whether the drop should be put in bold or not }
Click to show internal directories.
Click to hide internal directories.