Commit 82d1b2e
authored
Adding ephemeral detail string to Room GMCP, focing mapper to use lowest roomId as 0,0,0 (#372)
# Description
This forces the mapper to use the lowest RoomId in the set as the 0,0,0 origin. This solves the issue of drifting coordinates depending on what gets mapped first.
## Changes
- Added `x`, `y`, `z` offsets based on lowest room in mapper.
- Added `ephemeral` to Room GMCP payload (Details) when a room is ephemeral.
## Examples
without changes (Force to generate dark forest first):
```
Room.Info {
"num": 1,
"name": "Town Square",
"area": "Frostfang",
"environment": "City",
"coords": "Frostfang, -18, 1, 0",
"exits": {
"east": 54,
"north": 2,
"south": 12,
"west": 7
},
```
With changes (Still forced to generate dark forest first):
```
Room.Info {
"num": 1,
"name": "Town Square",
"area": "Frostfang",
"environment": "City",
"coords": "Frostfang, 0, 0, 0",
"exits": {
"east": 54,
"north": 2,
"south": 12,
"west": 7
},
```1 parent 4da6e5a commit 82d1b2e
2 files changed
+20
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| 226 | + | |
226 | 227 | | |
227 | 228 | | |
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
231 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
232 | 237 | | |
233 | 238 | | |
234 | 239 | | |
| |||
280 | 285 | | |
281 | 286 | | |
282 | 287 | | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
283 | 294 | | |
284 | 295 | | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
285 | 299 | | |
286 | 300 | | |
287 | 301 | | |
| 302 | + | |
288 | 303 | | |
289 | 304 | | |
290 | 305 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
442 | 447 | | |
443 | 448 | | |
444 | 449 | | |
| |||
0 commit comments