FEAT: randomize room number

randomize room number when not set but the night number is set
This commit is contained in:
zomo
2026-07-01 23:48:36 -05:00
parent 262f3d59ec
commit ecf30a9044
4 changed files with 38 additions and 8 deletions
+1 -6
View File
@@ -68,8 +68,7 @@ func (r *RoomIni) ToCredits() string {
return fmt.Sprintf(`Night %d - Room %d: %s
By: %s
Links: %s
`,
Links: %s`,
r.night, r.room, name,
credits, links,
)
@@ -137,10 +136,6 @@ func loadIniMeta(roomini *RoomIni, cfg *ini.File) error {
roomini.room = val
}
if roomini.night > 0 && roomini.room < 1 {
return fmt.Errorf("night is set but room is not set")
}
return nil
}