Commit graph

667 commits

Author SHA1 Message Date
Lucas Nicodemus
01d865fddc Move OnPlayerDamage to Bouncer
Remove reference to PlayerDamage v1 hook
2017-12-15 18:27:55 -07:00
Lucas Nicodemus
82e2ecb662 Move OnItemDrop to Bouncer 2017-12-15 18:11:35 -07:00
Lucas Nicodemus
5cdb38675c Move OnPlayerBuff logic to Bouncer 2017-12-15 17:51:16 -07:00
Lucas Nicodemus
845fc3b7c8 Move OnChestItemChange to Bouncer
Fix issue where TShock didn't properly do anti-cheat on chest
item changes.
2017-12-15 12:12:21 -07:00
Lucas Nicodemus
943f86615a Move UpdateNPCHome to Bouncer 2017-12-14 20:46:26 -07:00
Lucas Nicodemus
be8cffddfd Move OnChestOpen to Bouncer 2017-12-14 20:31:54 -07:00
Lucas Nicodemus
d67d3e66a6 Merge branch 'general-devel' into fragments 2017-12-14 20:21:20 -07:00
Lucas Nicodemus
a6d1d9ab49 Update submodule; PacketTypes.TileKill -> PlaceChest 2017-12-14 20:19:53 -07:00
Lucas Nicodemus
6d7c8aa019 TileKill -> PlaceChest (hook changed, so did packet); +Bouncer 2017-12-14 20:13:25 -07:00
Lucas Nicodemus
9f8db96188 Make death in hardcore sting a little more 2017-12-14 09:18:44 -07:00
Lucas Nicodemus
5cd5bdaaa0 Move OnLiquidSet to Bouncer 2017-12-14 07:46:29 -07:00
Lucas Nicodemus
903b5b124e Remove more randomly commented out code with no apparent reason 2017-12-11 10:04:21 -07:00
Lucas Nicodemus
4b08d61673 Change null check to return true in HandlePlayerUpdate
After confirming with @QuiCM on this, we couldn't figure out why
this was set to false in the first place. As a result, we changed
it to true to conform with usual logic (bad stuff? reject it.).
2017-12-11 00:17:58 -07:00
Lucas Nicodemus
ba851d3570 Remove TShock.CheckProjectilePermission
Add TSPlayer.HasProjectilePermission() and its inverse:
	TSPlayer.LacksProjectilePermission()
2017-12-10 23:38:03 -07:00
Lucas Nicodemus
c5f9a51802 Move most of HandleProjectileKill to Bouncer
Added GetDataHandlers.ProjectileKill hook and related arguments.
Fired when a projectile kill packet is accepted by the server.
2017-12-10 23:07:17 -07:00
Lucas Nicodemus
2cfa633df4 Remove commented out code from HandleProjectileKill 2017-12-10 11:26:01 -07:00
Lucas Nicodemus
d3c566db83 Move a large majority of OnPlayerUpdate to Bouncer
I really really don't understand why we're doing Terraria's data
sync for them (see HandlePlayerUpdate). Someone know why?
2017-12-10 10:04:27 -07:00
Lucas Nicodemus
dd7ffe2d3a Move PlayerKillMeV2 anti-crash to Bouncer
Removed PacketTypes.PlayerKillMe since it's out of the protocol.
Removed handler method for PlayerKillMe since it's out of the
	protocol.
Updated changelog to reflect new hook changes.
2017-12-09 13:50:18 -07:00
Lucas Nicodemus
031398591a Merge remote-tracking branch 'origin/general-devel' into fragments 2017-12-09 08:44:49 -07:00
Lucas Nicodemus
46617e61d0 Update changelog re. new hook changes 2017-12-09 01:29:23 -07:00
Lucas Nicodemus
c891a81f67 Move NewProjectile into Bouncer 2017-12-09 01:19:05 -07:00
Lucas Nicodemus
b5a40a4472 Comment OnPlaceObject related hook stuff 2017-12-07 21:46:45 -07:00
Lucas Nicodemus
914782ab9e Create hook PlaceObject; move anti-hack to Bouncer 2017-12-07 21:43:33 -07:00
Edgar Luque
07da3d5f58 missed some more declarations 2017-12-08 01:48:08 +01:00
Edgar Luque
6589531868 Renamed TShockAPI.DB 'User' to 'UserAccount' 2017-12-08 01:38:15 +01:00
Lucas Nicodemus
a4d9f0295a Move OnTileEdit stuff to Bouncer
There are probably a few components in here that don't make sense
for bouncer (looking at you, regions code). However, it's on my todo
list rather than being an imminent thing.
2017-12-06 22:16:19 -07:00
Lucas Nicodemus
9ba0907dc0 Fix most of the stupid comments in Bouncer 2017-12-06 17:02:23 -07:00
Lucas Nicodemus
f065e99a0e Add HealOtherPlayer hook; integrate with Bouncer 2017-12-05 11:59:27 -07:00
Lucas Nicodemus
db7ae627ae Move orientable tiles into Bouncer 2017-12-05 02:35:04 -07:00
Lucas Nicodemus
e782a07564 Move SendTileSquare handling for Bouncer into Bouncer 2017-12-05 02:32:33 -07:00
Ziteng Wang
744c812323 Fix item frame not working properly 2017-11-20 14:51:42 -08:00
ProfessorXZ
5a04b66514 Make Utils.GetBuffDescription actually return the buff's description & properly read 'buffTime' from the stream. Fixes #1469 2017-09-08 21:59:13 +02:00
ProfessorXZ
6b3f18b1da Validate tile placement on PlaceObject, update CHANGELOG.md. Fixes #1418 2017-07-05 15:09:31 +02:00
MarioE
50a4b07bc3 Add "new" EditActions. 2017-06-23 14:47:38 -04:00
ZIT WANG
8116aebd2c Fix itemban not working on non-English language 2017-05-12 18:06:49 +08:00
ZIT WANG
930607a142 Add Localization support
* Add EnglishLanguage type to store English texts
* Itemban now store English item name
* Command `/i` `/give` `/sm` `/tpnpc` can use both English and current language input
2017-04-21 21:58:37 +08:00
CoderCow
97ecb7d570 Fix crystal and golden chests 2017-04-20 15:24:16 +02:00
Lucas Nicodemus
9b419467d6
Replace NetworkText.FromLiteral("") with NetworkText.Empty
Thanks @deadsurgeon42
2017-04-20 00:31:33 -06:00
Lucas Nicodemus
2d14533172
Terraria 1.3.5 changes compile (NO GUARANTEES ON EXECUTING) 2017-04-19 18:21:34 -06:00
Lucas Nicodemus
b8dbdb9ff4
Final batch of .name changes 2017-04-19 17:41:15 -06:00
White
c4a3a9fb67 Updated Copyright for 2017 2017-03-13 12:17:16 +10:30
White
96e855d578 Null check for values in HandlePlayerUpdate.
Might resolve #1405.
2017-03-13 12:12:48 +10:30
Simon311
54f6bb3a7e Fix a client crash exploit 2017-03-11 06:08:13 +03:00
Zt Wang
1c8d49870e Fix inaccurate summary and add TSPlayer for ItemDropEventArgs 2017-02-13 16:41:38 +08:00
DogooFalchion
6fb6098acf Add campfire to the orientable tiles list. 2017-01-19 19:10:53 -05:00
White
d864acd22f Merge branch 'general-devel' into fix_trapdoors 2017-01-02 22:03:32 +10:30
White
6359dad213 AllowCutTilesAndBreakables option works better now.
Herbs, vines, flowers can be cut inside regions if the option is enabled.
Any action that would also break a wall is still ignored.
Closes #1334
2016-12-31 12:57:16 +10:30
DogooFalchion
3075708c96 Fix for trap doors. Also add in protection in the tile conversion logic to not needless trigger sendtilesquare. Remove existing trapdoor bypass. 2016-12-29 21:51:58 -05:00
DogooFalchion
0a1e831fba Add rope coils and the ropes they place to the tile create exceptions.
Fixes #1352
2016-12-21 21:16:00 -05:00
Lucas Nicodemus
678f6c7cf8
Update to Mintaka (thanks @enerdy) 2016-12-06 17:36:44 -07:00