diff options
author | metamuffin <metamuffin@disroot.org> | 2025-06-03 20:24:20 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-06-03 20:24:20 +0200 |
commit | d279baccdbaf37ae4410af1875e98597fe0b5565 (patch) | |
tree | e42320d5c0433a6b0415305da0520dc035553cef /server/src/commands.rs | |
parent | db4587d3ec64b7e28691b43f9d9701939eed94d1 (diff) | |
download | hurrycurry-d279baccdbaf37ae4410af1875e98597fe0b5565.tar hurrycurry-d279baccdbaf37ae4410af1875e98597fe0b5565.tar.bz2 hurrycurry-d279baccdbaf37ae4410af1875e98597fe0b5565.tar.zst |
use multiple ints for characters; close #294
Diffstat (limited to 'server/src/commands.rs')
-rw-r--r-- | server/src/commands.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/server/src/commands.rs b/server/src/commands.rs index b5645c8c..5be9e662 100644 --- a/server/src/commands.rs +++ b/server/src/commands.rs @@ -24,7 +24,9 @@ use crate::{ use anyhow::Result; use clap::{Parser, ValueEnum}; use hurrycurry_bot::algos::ALGO_CONSTRUCTORS; -use hurrycurry_protocol::{DocumentElement, Menu, Message, PacketC, PlayerClass, PlayerID}; +use hurrycurry_protocol::{ + Character, DocumentElement, Menu, Message, PacketC, PlayerClass, PlayerID, +}; use std::{fmt::Write, time::Duration}; #[derive(Parser)] @@ -242,7 +244,11 @@ impl Server { let algo = cons(); self.entities.push(Box::new(BotDriver::new( format!("{}-bot", name.unwrap_or((*aname).to_owned())), - 51, + Character { + color: 0, + hairstyle: 0, + headwear: 0, + }, PlayerClass::Bot, algo, ))); |