jake
6bd341cd01
check inventory has enough space to accept traded items
3 years ago
jake
6d2753d082
improve error display a bit
3 years ago
jake
3b7dcd0295
remove printlns
3 years ago
jake
b3b6dad6ad
trades!
3 years ago
jake
5d410f88f3
PartialEq LocalClientId u8
3 years ago
jake
3865caba8d
refcell room id counter
3 years ago
jake
d85ada945e
add some functions to Inventory
3 years ago
jake
82ef5ba2ea
RIP ItemLocation
fun while it lasted
ItemLocation ceased to be the canonical place to store an item's
location. replaced with ItemNote which basically covers the actual use
case but without the enforcing of a location.
3 years ago
jake
b80f30ef9d
initial actual trading logic
3 years ago
jake
98260308e8
stray spaces
3 years ago
jake
8e82d6c4b4
convert item pickup to new itemtransaction model
3 years ago
jake
d80d0fb01d
add some functions to Inventory
3 years ago
jake
ac423fa6ba
change trade structure in clientstate
3 years ago
jake
8a29a75397
remove TODO
3 years ago
jake
296d1cc0ea
InventoryItem::{stacked, mag}
3 years ago
jake
dbb1105741
cleanup
3 years ago
jake
21df9a9340
itemtransaction action takes boxed value
3 years ago
jake
42eb875f8f
split create_item into individual and stacked variants
3 years ago
jake
b374b63cba
nth(0) -> next()
3 years ago
jake
70a6764360
make these a bit more public for tests
3 years ago
jake
143ed7ed78
add ItemTransaction struct as begining of item refactor v3
3 years ago
jake
0d30df8da6
start of trading
4 years ago
andy
89ae918a2f
remove unused line
3 years ago
andy
a65afc4123
todo error?
4 years ago
andy
da2267c723
tell neighbours we are banking
4 years ago
jake
1b506e014f
clean up last of normal warnings
3 years ago
jake
4ce7fb2a26
lint src/common/*
3 years ago
jake
53ec82d9eb
lint src/ship/*
3 years ago
jake
3457996afd
lint src/ship/items/*
3 years ago
jake
03906a7f0a
lint src/ship/map/*
3 years ago
jake
f6bf34e193
lint src/ship/drops/*
3 years ago
jake
60bcfd78ec
lint src/ship/packet/builder/*
3 years ago
jake
3cf834ed55
lint src/ship/packet/handler/*
3 years ago
jake
e89821990f
lint src/ship/packet/builder/ship.rs
3 years ago
jake
c3c0f031ed
lint src/ship/quests.rs
3 years ago
jake
027de8a20d
lint src/ship/shop/weapon.rs
3 years ago
jake
d42491095e
lint src/ship/shop/tool.rs
3 years ago
jake
64a3a1ff97
lint src/ship/shop/armor.rs
3 years ago
jake
bbe22a305a
properly handle an error that doesn't even occur at the moment
3 years ago
jake
f9be2596cf
missed this const fix
3 years ago
jake
f4fae162f0
tekking!
4 years ago
jake
b45a0ba1d5
clean up directmsg handler
4 years ago
jake
b6ce6296d4
create_item takes generic item rather than floor item
4 years ago
jake
d263bf4caa
remove item from inventory by id
4 years ago
jake
5345939b1b
IndividualInventoryItem::weapon
4 years ago
jake
c437c3da5b
split this into individual/individual_mut
4 years ago
jake
92c34b2d28
remove modifiers from weapon and armor
4 years ago
jake
11fecd5bda
fix tests that care about rooms
4 years ago
jake
ae696888e9
remove player from lobby before sending to another ship/block
4 years ago
jake
fe03515871
basic multiple login check
4 years ago