3865caba8d
refcell room id counter
2021-12-10 13:19:22 -07:00
d85ada945e
add some functions to Inventory
2021-12-10 13:16:18 -07:00
82ef5ba2ea
RIP ItemLocation
...
continuous-integration/drone/push Build is failing
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.
2021-11-12 10:42:33 -07:00
b80f30ef9d
initial actual trading logic
continuous-integration/drone/push Build is failing
2021-10-15 12:17:37 -06:00
98260308e8
stray spaces
2021-10-14 00:30:53 -06:00
8e82d6c4b4
convert item pickup to new itemtransaction model
continuous-integration/drone/push Build is failing
2021-10-14 00:28:31 -06:00
d80d0fb01d
add some functions to Inventory
2021-10-14 00:22:23 -06:00
8a29a75397
remove TODO
2021-10-14 00:17:36 -06:00
296d1cc0ea
InventoryItem::{stacked, mag}
2021-10-13 23:58:32 -06:00
dbb1105741
cleanup
2021-10-13 23:57:38 -06:00
21df9a9340
itemtransaction action takes boxed value
continuous-integration/drone/push Build is failing
2021-10-13 23:56:42 -06:00
70a6764360
make these a bit more public for tests
2021-09-27 23:46:03 -06:00
143ed7ed78
add ItemTransaction struct as begining of item refactor v3
2021-09-27 23:07:21 -06:00
0d30df8da6
start of trading
2021-07-30 23:19:47 -06:00
1b506e014f
clean up last of normal warnings
2021-06-18 20:38:29 -06:00
3457996afd
lint src/ship/items/*
2021-06-18 16:09:35 -06:00
bbe22a305a
properly handle an error that doesn't even occur at the moment
continuous-integration/drone/push Build is passing
2021-06-18 02:11:52 -06:00
f4fae162f0
tekking!
2020-12-03 15:04:48 -07:00
d263bf4caa
remove item from inventory by id
2020-12-03 15:01:00 -07:00
5345939b1b
IndividualInventoryItem::weapon
2020-12-03 15:00:38 -07:00
c437c3da5b
split this into individual/individual_mut
2020-12-02 22:51:36 -07:00
4b78a110f0
anyhow the rest of the itemmanager
2020-11-16 21:55:24 -07:00
a3cc29b68f
use anyhow for itemmanager
2020-11-16 21:50:10 -07:00
f7c6be48b2
don't try and say an item was picked up that the client doesn't know about
2020-11-16 21:50:10 -07:00
9b05e60ca6
add todo for cheating
2020-11-16 21:02:11 -04:00
55c393b7a8
move the tech level adjustment to prevent underflow for new FOs. let characters use tech disks
2020-11-16 20:46:52 -04:00
c7a310391f
make inv mod pub
2020-11-09 19:07:41 -07:00
2d5f83fab6
make inv item stuff serializable
2020-11-09 19:03:03 -07:00
6e2fab31f0
e q u i p r e f a c t o r
2020-11-09 16:47:19 -07:00
7ae8976c10
i t e m r e f a c t o r
2020-11-05 16:36:39 -07:00
72141ace2c
remove unneeded warnings
2020-11-01 18:06:00 -07:00
e8fd37e32d
save_item -> change_item, impl for postgres
2020-11-01 18:06:00 -07:00
34cf660cbd
dont make new inventory
2020-11-01 19:54:50 -04:00
51240a31e3
rename test file
2020-10-31 23:11:46 -03:00
6d4f5ae8f6
enumerate after filtering and add test
2020-10-31 23:11:45 -03:00
andy
45d9b82598
sort items packets and dont equip multiple items in main it's confusing
2020-10-31 23:11:45 -03:00
ad612615c7
rebases are hard
2020-10-30 21:27:00 -06:00
cae89cd2ac
get_items_by_character takes character id not character entity
2020-10-30 21:25:29 -06:00
b3e0674ca5
fix more tests + fix warnings
2020-10-30 21:25:27 -06:00
2351b31125
entitygateway uses results for its functions now
2020-10-30 21:23:59 -06:00
a95bcf35c8
andypls
2020-10-28 20:15:00 -03:00
67e96d33db
why did i shuffle this
2020-10-28 20:12:42 -03:00
f3e7599975
some comments and tests
2020-10-26 23:15:04 -03:00
e256423dfa
remove comments and don't be canadian
2020-10-26 23:15:04 -03:00
790668f6f7
add unit armour slots. equip the unit into the right slot and save correctly
2020-10-26 23:15:03 -03:00
555171d11d
server unequips units now. formatting and cleanup unuseds. fix merge conflict
2020-10-26 23:14:06 -03:00
6c33c7ec9b
dont delete items when unequipping
2020-10-26 23:05:25 -03:00
48abf4533f
player can (un)equip things now
2020-10-26 23:05:25 -03:00
a148d96adc
slots need to be updated when an item leaves inventory
2020-10-07 19:24:46 -06:00
cebb6a5f31
handle case where items are removed from shop after buying
2020-09-27 20:30:37 -06:00