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.
21 lines
683 B
Go
21 lines
683 B
Go
package game
|
|
|
|
import "fmt"
|
|
|
|
// Prefixes embed grouping hints for the client adventure log (no DB migration).
|
|
// Stripped for human-readable display outside structured UIs.
|
|
const (
|
|
AdventureLogEncounterPrefix = "__AH_ENC__"
|
|
AdventureLogBattlePrefix = "__AH_BAT__"
|
|
)
|
|
|
|
// FormatEncounterLogLine is logged once when combat starts (before battle detail lines).
|
|
func FormatEncounterLogLine(enemyName string) string {
|
|
return AdventureLogEncounterPrefix + fmt.Sprintf("You encounter %s.", enemyName)
|
|
}
|
|
|
|
// FormatBattleLogLine wraps a single combat narration line (hit, dodge, block, stun, debuff).
|
|
func FormatBattleLogLine(msg string) string {
|
|
return AdventureLogBattlePrefix + msg
|
|
}
|