add AccessLevel stuff to charactersheet trait

This commit is contained in:
Rusty Striker 2024-10-12 15:07:07 +03:00
parent 0eaffc9a8f
commit 473161674f
Signed by: RustyStriker
GPG key ID: 87E4D691632DFF15
5 changed files with 77 additions and 32 deletions

View file

@ -30,7 +30,7 @@ impl GameServer {
.with_roll(DiceRoll::new("Pierce".to_string(), 12, 1).constant(1))
.with_roll(DiceRoll::new("Fire".to_string(), 4, 2))
)
.with_action(ActionDefinition::new("Attack +3".to_string()))
.with_action(ActionDefinition::new("Attack +3".to_string()).with_roll(DiceRoll::new("Base".to_string(), 20, 1)))
.with_action(ActionDefinition::new("Attack -1".to_string()))
)
],
@ -48,6 +48,7 @@ impl GameServer {
println!("Got message from {}: {:?}", &id, &req);
match req {
// ignore errors and re-login requests
api::Request::Error => {}
api::Request::Login(_) => {}
api::Request::Message(mut msg) => {