Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
240 changes: 238 additions & 2 deletions tavern/internal/namegen/namegen.go
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,235 @@ var (
"wormy",
"wretched",
}

noun_winter = [...]string{
"angel",
"bauble",
"bear",
"bell",
"blanket",
"blizzard",
"boots",
"bough",
"bow",
"bunny",
"candle",
"candy",
"candy-cane",
"cardigan",
"carol",
"celebration",
"cheer",
"chestnut",
"chimney",
"chocolate",
"cider",
"cocoa",
"cold",
"comet",
"cookie",
"cub",
"cupcake",
"dancer",
"decoration",
"dove",
"drummer",
"earmuffs",
"elf",
"ember",
"eve",
"evergreen",
"fairytale",
"family",
"feast",
"festival",
"fireplace",
"fireworks",
"flannel",
"fleece",
"friendship",
"frost",
"garland",
"gift",
"gingerbread",
"glacier",
"gloves",
"hearth",
"holiday",
"holly",
"hug",
"hugs",
"ice",
"ice-skate",
"icicle",
"igloo",
"ivy",
"jacket",
"joy",
"jubilee",
"jumper",
"kindness",
"kitten",
"knits",
"log-fire",
"love",
"magic",
"marshmallow",
"mistletoe",
"mittens",
"moon",
"night",
"north-pole",
"nutcracker",
"ornament",
"parka",
"party",
"peace",
"penguin",
"peppermint",
"pie",
"pine-cone",
"poinsettia",
"polar-bear",
"present",
"pudding",
"puppy",
"quilt",
"reindeer",
"ribbon",
"robin",
"rudolph",
"santa",
"scarf",
"shovel",
"skating",
"skis",
"sled",
"sleigh",
"sleigh-bells",
"smile",
"snuggles",
"snow",
"snow-angel",
"snow-globe",
"snowball",
"snowboard",
"snowflake",
"snowman",
"socks",
"solstice",
"sparkle",
"spice",
"spirit",
"star",
"stocking",
"storm",
"sugar-plum",
"sweater",
"tea",
"teddy",
"tinsel",
"toboggan",
"toy",
"tradition",
"tree",
"truffle",
"vacation",
"winter",
"wreath",
"yule-log",
}

adjectives_winter = [...]string{
"adorable",
"angelic",
"arctic",
"biting",
"bitter",
"blanketed",
"blissful",
"blustery",
"bright",
"brilliant",
"brisk",
"bubbly",
"calm",
"celebratory",
"charming",
"cheerful",
"cherished",
"chilly",
"cold",
"comforting",
"cozy",
"crisp",
"cuddly",
"cute",
"dazzling",
"delightful",
"dreamy",
"enchanting",
"festive",
"fluffy",
"freezing",
"friendly",
"frigid",
"frosty",
"frozen",
"fuzzy",
"gentle",
"gleaming",
"glimmering",
"glittering",
"glowing",
"golden",
"gusty",
"happy",
"harsh",
"heartwarming",
"hibernating",
"holiday",
"icy",
"jolly",
"joyful",
"joyous",
"jubilant",
"lovely",
"luminous",
"magical",
"merry",
"nippy",
"peaceful",
"playful",
"pleasant",
"polar",
"precious",
"quiet",
"radiant",
"rejoicing",
"serene",
"shimmering",
"shining",
"shivering",
"silky",
"snug",
"snowy",
"soft",
"sparkling",
"spirited",
"starry",
"stormy",
"sweet",
"tender",
"toasty",
"twinkling",
"warm",
"whimsical",
"windy",
"wintery",
"wondrous",
"woolly",
}
)

// NewSimple generates a random name with one adjective and one noun.
Expand All @@ -796,9 +1025,13 @@ func NewComplex() string {
func getRandomAdjNoun() (string, string) {
var adj, noun string

if time.Now().Month() == time.October {
month := time.Now().Month()
if month == time.October {
adj = adjectives_halloween[newRandInt(int64(len(adjectives_halloween)))]
noun = noun_halloween[newRandInt(int64(len(noun_halloween)))]
} else if month == time.December {
adj = adjectives_winter[newRandInt(int64(len(adjectives_winter)))]
noun = noun_winter[newRandInt(int64(len(noun_winter)))]
} else {
adj = adjectives[newRandInt(int64(len(adjectives)))]
noun = nouns[newRandInt(int64(len(nouns)))]
Expand All @@ -810,8 +1043,11 @@ func getRandomAdjNoun() (string, string) {
func getRandomAdjAdjNoun() (string, string, string) {
adj1, noun := getRandomAdjNoun()
var adj2 string
if time.Now().Month() == time.October {
month := time.Now().Month()
if month == time.October {
adj2 = adjectives_halloween[newRandInt(int64(len(adjectives_halloween)))]
} else if month == time.December {
adj2 = adjectives_winter[newRandInt(int64(len(adjectives_winter)))]
} else {
adj2 = adjectives[newRandInt(int64(len(adjectives)))]
}
Expand Down
Loading