FEAT: randomize room number
randomize room number when not set but the night number is set
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user