Commit graph

25 commits

Author SHA1 Message Date
xuyuwtu
75c8a8ced4 Use better code 2026-01-29 13:50:09 +08:00
xuyuwtu
54025a9b93 misc 2026-01-28 22:08:48 +08:00
Cai
e2740b6a36
sync 2026-01-28 17:48:26 +08:00
Cai
9eb49b0447
sync 2026-01-28 14:13:30 +08:00
AkjaHAsLk1IALk0MasH
4eb2aa49de Removed unnecessary documentation 2023-06-08 18:11:26 +07:00
AkjaHAsLk1IALk0MasH
3a90029d51 Allowed to receive an item if it is 0. 2023-06-08 16:33:32 +07:00
AkjaHAsLk1IALk0MasH
914d743264 Changed the method from NetItem.Build to NetItem.ToItem. 2023-06-06 19:15:58 +07:00
AkjaHAsLk1IALk0MasH
86be1738cc Added a constructor with arguments taking Terraria.Item. 2023-05-14 10:13:59 +07:00
AkjaHAsLk1IALk0MasH
62b8e5067c Added the `NetItem.Build' method.
The method will create a Terraria.Item instance based on the data from the structure.
2023-05-14 10:13:25 +07:00
AkjaHAsLk1IALk0MasH
c3f5994451 Added optional arguments stack and prefixId to the NetItem constructor 2023-05-14 10:08:02 +07:00
James Puleo
bfaa47ad1a
Introduce support for loadouts, and save current loadout index to SSC
We needed to modify `NetItem` to know that these new inventory now
exist.

`PlayerData` can now re/store these items, and properly sync them. It
also now knows of the player's currently selected index, and how to sync
it.
2022-10-22 17:36:57 -04:00
鱼鱼
1ed95c737e pass compile; add void vault code 2020-05-17 21:38:47 +08:00
Lucas Nicodemus
70dd72443d Update copyright to 2019 again
Fixes #1658, most likely.
2019-03-29 17:16:37 -07:00
Lucas Nicodemus
569b350cea Update to Pryaxis, 2018 part 2
If there's one thing I learned in this exercise, it's that letting
people add random python scripts to the repo like gpltext.py that
promise to be easier than find and replace is a bad idea.
2018-01-01 02:20:56 -07:00
Lucas Nicodemus
8d934ef08f Update to 2018 2018-01-01 02:17:21 -07:00
White
c4a3a9fb67 Updated Copyright for 2017 2017-03-13 12:17:16 +10:30
DogooFalchion
2236a5bb56 More SSC cleanup. Fixes prefix issues. 2016-12-21 20:39:27 -05:00
DogooFalchion
e1017e92b4 Refactor some of the mess that is NetItem and PlayerData to be more sane. Can not reproduce the SSC corruption with this. 2016-12-12 17:46:44 -05:00
Zaicon Kiroshu
a0a98d19f3 Bank3 Implementation 2016-11-23 18:51:11 -06:00
Adilson Carvalho
ad03215986 Added GPL header on all code files when missing 2016-10-16 17:33:19 -02:00
White
23ab14df4f Added backwards compatibility for SSC 2015-07-10 16:58:32 +09:30
White
f5e1b79fbb Fixed more of SSC. Trash, held item, piggy items, and safe items are all cleared upon first login. 2015-07-09 16:48:32 +09:30
White
3a3e053d43 Fixed SSC. Note that SSC will NOT work with UUID login before join. UUID login before join has been disabled during SSC unless the player has the "tshock.ignore.ssc" permission.
Removed IncrementKills()
2015-07-05 23:13:54 +09:30
MarioE
ad5ec1c252 Fix NetItem serialization/deserialization 2015-05-04 22:28:41 -04:00
MarioE
d5fb8726cc Extend NetItem 2015-05-04 22:11:10 -04:00