You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
755 B
Go
30 lines
755 B
Go
package model
|
|
|
|
// HeroMeetAutoLineSlugs are stable ids for auto-dialogue (client localizes hero_meet.auto.<slug>).
|
|
var HeroMeetAutoLineSlugs = []string{
|
|
"nod_traveler",
|
|
"quiet_road_today",
|
|
"heard_rumors_beasts",
|
|
"gear_clinks_soft",
|
|
"stay_safe_out_there",
|
|
"short_rest_then_go",
|
|
"sun_in_eyes",
|
|
"paths_cross_again",
|
|
"trade_news_smile",
|
|
"wind_picks_up",
|
|
"good_luck_hunt",
|
|
"watch_the_brush",
|
|
}
|
|
|
|
// HeroMeetAutoPhraseKey returns phrase key e.g. hero_meet.auto.nod_traveler for log / WS.
|
|
func HeroMeetAutoPhraseKey(lineIdx int) string {
|
|
if len(HeroMeetAutoLineSlugs) == 0 {
|
|
return "hero_meet.auto.fallback"
|
|
}
|
|
if lineIdx < 0 {
|
|
lineIdx = 0
|
|
}
|
|
slug := HeroMeetAutoLineSlugs[lineIdx%len(HeroMeetAutoLineSlugs)]
|
|
return "hero_meet.auto." + slug
|
|
}
|