1
Fork 0
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:
Joshua Goins 2025-04-01 21:53:10 -04:00
parent 216778ea8b
commit 121415b163
2 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -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!"),
} }
} }