simulations

package
v0.0.0-...-e3285d1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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
}

type DropFunc

type DropFunc func(int64, dropTables, *discordgo.InteractionCreate) map[string]*Drop

Jump to

Keyboard shortcuts

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