Documentation ¶
Overview ¶
Package dndrp implements a Service that acts as a helpful RPG bot for DnD-style RPs
Index ¶
- Constants
- type Diaper
- type DiscordMessage
- type Item
- type Player
- func (p *Player) Change(newThickness int) interface{}
- func (p *Player) ConsumeItem(item *Item) interface{}
- func (p *Player) Diaper(diaper *Diaper) interface{}
- func (p Player) DiaperThickness() int
- func (p *Player) GetItems(itemSlice []*Item)
- func (p *Player) Hold()
- func (p *Player) ListItems() interface{}
- func (p *Player) MessDiaper()
- func (p *Player) RemoveItem(itemname string)
- func (p *Player) WetDiaper()
- type Service
- type Stats
- type StatusMsg
Constants ¶
const ServiceType = "dndrp"
Configure service type
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiscordMessage ¶
type Player ¶
type Player struct { Name string `json:"name"` RoomId string `json:"roomid"` ChannelId string `json:"channelid"` Items []string `json:"items"` AvatarURL string `json:"avatarurl"` BladderWarningGiven bool `json:"bladderwarninggiven"` BowelWarningGiven bool `json:"bowelwarninggiven"` Diapers []*Diaper `json:"diapers"` DiaperFullness int `json:"diaperfullness"` HoldCount int `json:"holdcount"` MaxHold int `json:"maxhold"` Stats *Stats `json:"stats"` IsBig bool `json:"isbig"` GroupId []string `json:"groupid"` // TODO: Integrate with an eqiup system, where the mouth component has a "mute amount" // Normal pacifier would be like 50%, whereas a ball gag would be 100% IsMuted bool `json:"ismuted"` }
Stats for each player
func (*Player) ConsumeItem ¶
ConsumeItem will remove an item from a player's inventory and add the item's attributes to the player's own attributes
func (Player) DiaperThickness ¶
DiaperThickness is a helper function that returns the total thickness of all of the given player's diapers as a sum representing the amount of centimeters
func (*Player) GetItems ¶
GetItems is a helper function that returns a slice of Item objects that the player has access to
func (*Player) Hold ¶
func (p *Player) Hold()
Hold will hold in a players mess for a certain amount of time.
func (*Player) ListItems ¶
func (p *Player) ListItems() interface{}
ListItems will return a formatted message that lists all currently known items for a specific user
func (*Player) MessDiaper ¶
func (p *Player) MessDiaper()
MessDiaper will empty the contents of a player's bowels into their diaper
func (*Player) RemoveItem ¶
RemoveItem is a helper function that removes a single instance of an item from a player's item list given only an item name
type Service ¶
type Service struct {
types.DefaultService
}
TODO: Add config fields?
type Stats ¶
type Stats struct { Strength int `json:"strength"` Constitution int `json:"constitution"` Dexterity int `json:"dexterity"` Intelligence int `json:"intelligence"` Wisdom int `json:"wisdom"` Charisma int `json:"charisma"` Regression int `json:"regression"` Incontinence int `json:"incontinence"` Bladder int `json:"bladder"` Bowels int `json:"bowels"` }
Stats define a series of attributes that a player can have. They can also be modified by items or spells TODO: Be able to influence a player's stats in a simple format: !ch playername st:+1 in:-5