try to handle old "SET" rooms
This commit is contained in:
@@ -29,9 +29,10 @@ impl Room {
|
||||
|
||||
impl From<String> for Room {
|
||||
fn from(string: String) -> Room {
|
||||
// todo handle room_format?
|
||||
let string = string.replace("ROOM ", "");
|
||||
let string = string.replace("SET ", "");
|
||||
let mut lines: Vec<&str> = string.lines().collect();
|
||||
let id = from_base36(&lines[0].replace("ROOM ", ""));
|
||||
let id = from_base36(&lines[0]);
|
||||
let mut name = None;
|
||||
let mut palette_id = 0;
|
||||
let mut items: Vec<Instance> = Vec::new();
|
||||
|
||||
Reference in New Issue
Block a user