|
@ -499,6 +499,7 @@ impl ItemManager { |
|
|
let consumed_item = used_item.consume(amount)?;
|
|
|
let consumed_item = used_item.consume(amount)?;
|
|
|
|
|
|
|
|
|
if let ItemDetail::TechniqueDisk(tech_disk) = consumed_item.item() {
|
|
|
if let ItemDetail::TechniqueDisk(tech_disk) = consumed_item.item() {
|
|
|
|
|
|
// TODO: validate tech level in packet is in bounds [1..30]
|
|
|
character.techs.set_tech(tech_disk.tech, TechLevel(tech_disk.level as u8));
|
|
|
character.techs.set_tech(tech_disk.tech, TechLevel(tech_disk.level as u8));
|
|
|
entity_gateway.save_character(character).await?;
|
|
|
entity_gateway.save_character(character).await?;
|
|
|
};
|
|
|
};
|
|
|