mirror of
https://github.com/redstrate/Kawari.git
synced 2025-04-21 15:07:45 +00:00
Add !classjob debug command to change your class/job
This is the workaround for lack of a proper class/job switch when equipping different weapons.
This commit is contained in:
parent
216778ea8b
commit
121415b163
2 changed files with 7 additions and 1 deletions
1
USAGE.md
1
USAGE.md
|
@ -93,6 +93,7 @@ These special debug commands start with `!` and are custom to Kawari.
|
||||||
* Territory `182`, Event `1245187` plays the Ul'dah opening sequence
|
* Territory `182`, Event `1245187` plays the Ul'dah opening sequence
|
||||||
* Territory `183`, Event `1245186` plays the Gridania opening sequence
|
* Territory `183`, Event `1245186` plays the Gridania opening sequence
|
||||||
* `!spawnclone`: Spawn a clone of yourself
|
* `!spawnclone`: Spawn a clone of yourself
|
||||||
|
* `!classjob <id>`: Changes to another class/job
|
||||||
|
|
||||||
### GM commands
|
### GM commands
|
||||||
|
|
||||||
|
|
|
@ -321,7 +321,6 @@ impl ChatHandler {
|
||||||
}
|
}
|
||||||
"!spawnclone" => {
|
"!spawnclone" => {
|
||||||
// spawn another one of us
|
// spawn another one of us
|
||||||
|
|
||||||
let player = &connection.player_data;
|
let player = &connection.player_data;
|
||||||
|
|
||||||
let mut common = connection
|
let mut common = connection
|
||||||
|
@ -348,6 +347,12 @@ impl ChatHandler {
|
||||||
})
|
})
|
||||||
.await;
|
.await;
|
||||||
}
|
}
|
||||||
|
"!classjob" => {
|
||||||
|
let parts: Vec<&str> = chat_message.message.split(' ').collect();
|
||||||
|
|
||||||
|
connection.player_data.classjob_id = parts[1].parse::<u8>().unwrap();
|
||||||
|
connection.update_class_info().await;
|
||||||
|
}
|
||||||
_ => tracing::info!("Unrecognized debug command!"),
|
_ => tracing::info!("Unrecognized debug command!"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue