diff --git a/src/entity/gateway/inmemory.rs b/src/entity/gateway/inmemory.rs index 9324221..428c5f3 100644 --- a/src/entity/gateway/inmemory.rs +++ b/src/entity/gateway/inmemory.rs @@ -420,7 +420,7 @@ impl EntityGateway for InMemoryGateway { Ok(()) } - // TOOD: impl bank name + // TODO: impl bank name async fn set_character_bank(&mut self, char_id: &CharacterEntityId, bank: &BankEntity, _bank_name: BankName) -> Result<(), GatewayError> { let mut banks = self.banks.lock().unwrap(); banks.insert(*char_id, bank.clone()); diff --git a/src/ship/items/inventory.rs b/src/ship/items/inventory.rs index 4d5fc1b..5ce2765 100644 --- a/src/ship/items/inventory.rs +++ b/src/ship/items/inventory.rs @@ -197,7 +197,7 @@ impl InventoryItem { } } - // TOOD: delete? + // TODO: delete? pub fn are_same_stackable_tool(&self, other_stacked_item: &StackedFloorItem) -> bool { match self { InventoryItem::Stacked(self_stacked_item) => { @@ -208,7 +208,7 @@ impl InventoryItem { } } - // TOOD: delete? + // TODO: delete? pub fn can_combine_stacks(&self, other_stacked_item: &StackedFloorItem) -> bool { match self { InventoryItem::Stacked(self_stacked_item) => { @@ -221,7 +221,7 @@ impl InventoryItem { } // TODO: result - // TOOD: delete? + // TODO: delete? pub fn combine_stacks(&mut self, other_stacked_item: &mut StackedFloorItem) { match self { InventoryItem::Stacked(self_stacked_item) => { diff --git a/src/ship/map/area.rs b/src/ship/map/area.rs index 9621109..4f5d02d 100644 --- a/src/ship/map/area.rs +++ b/src/ship/map/area.rs @@ -1,4 +1,4 @@ -// TOOD: `pub(super) for most of these?` +// TODO: `pub(super) for most of these?` use serde::{Serialize, Deserialize}; use std::collections::HashMap; use thiserror::Error; diff --git a/src/ship/map/enemy.rs b/src/ship/map/enemy.rs index 8eab744..a6b397a 100644 --- a/src/ship/map/enemy.rs +++ b/src/ship/map/enemy.rs @@ -1,4 +1,4 @@ -// TOOD: `pub(super) for most of these?` +// TODO: `pub(super) for most of these?` use std::io::{Read}; use byteorder::{LittleEndian, ReadBytesExt}; diff --git a/src/ship/map/maps.rs b/src/ship/map/maps.rs index 3f7f515..6f0fa34 100644 --- a/src/ship/map/maps.rs +++ b/src/ship/map/maps.rs @@ -1,4 +1,4 @@ -// TOOD: `pub(super) for most of these?` +// TODO: `pub(super) for most of these?` use std::path::PathBuf; use std::io::{Read}; @@ -96,7 +96,7 @@ fn parse_enemy(episode: &Episode, map_area: &MapArea, raw_enemy: RawMapEnemy) -> monsters.push(Some(MapEnemy::new(MonsterType::VolOptCore, monster.map_area))); monsters.push(Some(MapEnemy::new(MonsterType::VolOptUnused, monster.map_area))); }, - // TOOD: this cares about difficulty (theres an ult-specific darvant?) + // TODO: this cares about difficulty (theres an ult-specific darvant?) MonsterType::DarkFalz => { for _ in 0..509 { monsters.push(Some(MapEnemy::new(MonsterType::Darvant, monster.map_area))); diff --git a/src/ship/map/object.rs b/src/ship/map/object.rs index dde1e7e..c681fe2 100644 --- a/src/ship/map/object.rs +++ b/src/ship/map/object.rs @@ -1,4 +1,4 @@ -// TOOD: `pub(super) for most of these?` +// TODO: `pub(super) for most of these?` use std::io::{Read}; diff --git a/src/ship/map/variant.rs b/src/ship/map/variant.rs index a969960..f11815c 100644 --- a/src/ship/map/variant.rs +++ b/src/ship/map/variant.rs @@ -1,4 +1,4 @@ -// TOOD: `pub(super) for most of these?` +// TODO: `pub(super) for most of these?` use rand::Rng; diff --git a/src/ship/packet/builder/message.rs b/src/ship/packet/builder/message.rs index 91d4149..715b4a3 100644 --- a/src/ship/packet/builder/message.rs +++ b/src/ship/packet/builder/message.rs @@ -119,7 +119,7 @@ pub fn character_leveled_up(area_client: AreaClient, level: u32, before_stats: C } } -// TOOD: checksum? +// TODO: checksum? pub fn bank_item_list(bank: &CharacterBank, char_bank_meseta: u32) -> BankItemList { BankItemList { aflag: 0, diff --git a/src/ship/packet/handler/quest.rs b/src/ship/packet/handler/quest.rs index 785442a..906767d 100644 --- a/src/ship/packet/handler/quest.rs +++ b/src/ship/packet/handler/quest.rs @@ -7,7 +7,7 @@ use crate::ship::location::{ClientLocation, ClientLocationError}; use crate::ship::packet::builder::quest; use libpso::util::array_to_utf8; -// TOOD: enum +// TODO: enum enum QuestFileType { Bin, Dat diff --git a/src/ship/ship.rs b/src/ship/ship.rs index f8f08a6..18bb06f 100644 --- a/src/ship/ship.rs +++ b/src/ship/ship.rs @@ -653,7 +653,7 @@ impl ServerState for ShipServerState { handler::room::cool_62(id, cool62, &block.client_location) }, RecvShipPacket::ClientCharacterData(_) => { - // TOOD: validate this in some way? + // TODO: validate this in some way? Box::new(None.into_iter()) }, RecvShipPacket::DoneBursting(_) => { diff --git a/tests/test_shops.rs b/tests/test_shops.rs index 873488c..8b2aca9 100644 --- a/tests/test_shops.rs +++ b/tests/test_shops.rs @@ -523,7 +523,7 @@ async fn test_techs_disappear_from_shop_when_bought() { }).unwrap(); } -// TOOD: this is not deterministic and can randomly fail +// TODO: this is not deterministic and can randomly fail #[async_std::test] async fn test_units_disappear_from_shop_when_bought() { let mut entity_gateway = InMemoryGateway::new();