Lucas Nicodemus
db633cfa9c
Update changelog for command specifier in messages
2017-12-20 19:01:50 -07:00
Lucas Nicodemus
e1e4f41118
Made disable message for login use specifier
2017-12-20 19:00:16 -07:00
Lucas Nicodemus
4fa0f888ea
Merge pull request #1560 from Pryaxis/fragments
...
Fragments Part 1: Implement Bouncer infrastructure
2017-12-19 15:15:58 -07:00
Lucas Nicodemus
713dd2614a
Fix regression where Bouncer would create dupe items on drop
2017-12-17 12:40:24 -07:00
Lucas Nicodemus
263c0bc402
Revert "Bouncer: Handle case where prefix < 1"
...
This reverts commit 3f79a904da .
If prefix is < 1 and we block this event, clients can no longer
delete picked up items. This is what caused what Joshwoo reported.
2017-12-17 12:27:02 -07:00
Lucas Nicodemus
c1de974e16
Remove happiness.
...
http://rubyonrails.org/doctrine
The problem with most programmers is that they refuse to see any
logic in thinking about a problem from the other side, even just
once. You can't argue with someone over what opinionated "programmer
happiness" things are because logically you'll always be outmatched
with "well you can just do it this other way."
Take this example. How is !args.Player.HasProjectilePermission any
easier to understand than args.Player.LacksProjectilePermission?
-> One is direct: it focuses on what a player doesn't have.
-> The other is indirect: it's the inverse of have.
You can read one in a sentence and think "so if a player lacks a
permission then this happens" whereas the other is like "invert
if a player has a permission." In this soupy mess of a codebase
where you're trying to sort out what 300 magic numbers mean and
what everything else is trying to do, then it's kinda nice to
be able to read something and understand it immediately.
2017-12-17 01:10:32 -07:00
Lucas Nicodemus
0afcf0d248
Merge remote-tracking branch 'origin/general-devel' into fragments
2017-12-17 00:45:02 -07:00
Lucas Nicodemus
14a6338b73
Add a "remove from bouncer" todo item
2017-12-17 00:44:19 -07:00
Lucas Nicodemus
cfe3d71218
Merge pull request #1568 from Pryaxis/fix-setup
...
Fix /setup not working with owner groups; update readme
2017-12-17 00:44:06 -07:00
Lucas Nicodemus
3f79a904da
Bouncer: Handle case where prefix < 1
2017-12-17 00:39:22 -07:00
Lucas Nicodemus
b71458b293
Fix /setup not working with owner groups; update readme
2017-12-16 20:37:43 -07:00
Lucas Nicodemus
9d0c84fd13
Fix handler registration in Bouncer init constructor
2017-12-16 10:37:44 -07:00
Lucas Nicodemus
cff91f39e8
Update the changelog
2017-12-16 01:18:22 -07:00
Lucas Nicodemus
1e9532a316
Create TSPlayer.IsBouncerThrottled() to avoid code copypasta
2017-12-16 01:14:39 -07:00
Lucas Nicodemus
0260530848
Change Bouncer initialization to a more permanent home
2017-12-16 01:09:40 -07:00
Lucas Nicodemus
1bee289daf
Move TShock.CheckIgnores(TSPlayer) -> TSPlayer.CheckIgnores()
...
Note: This method really sucks and needs to be rebuilt anyway.
2017-12-16 01:03:05 -07:00
Lucas Nicodemus
9f7c3ead09
Add & move OnPlaceItemFrame to Bouncer
2017-12-15 23:15:43 -07:00
Lucas Nicodemus
748d7f7fab
Move OnGemLockToggle -> Bouncer
2017-12-15 22:58:41 -07:00
Lucas Nicodemus
de017f2d41
Create & move OnPlaceTileEntity to Bouncer; fix unreachable code
2017-12-15 22:51:07 -07:00
Lucas Nicodemus
64facfc10c
Document internal mass wire op in Bouncer
2017-12-15 22:29:52 -07:00
Lucas Nicodemus
681f2a2432
Add & move OnMassWireOperation hook to Bouncer
2017-12-15 22:15:17 -07:00
Lucas Nicodemus
cdba07c62e
Move OnPlayerAnimation to Bouncer
2017-12-15 21:50:20 -07:00
Lucas Nicodemus
d03e899452
dmg -> damage
2017-12-15 21:43:27 -07:00
Lucas Nicodemus
007c685c19
Move OnNPCStrike to Bouncer
2017-12-15 21:42:20 -07:00
Lucas Nicodemus
e8a3f87e23
Merge remote-tracking branch 'origin/general-devel' into fragments
2017-12-15 19:28:12 -07:00
Chris
3533b7e55e
Merge pull request #1534 from Ryozuki/sql_improve
...
Add some SQL improvements
2017-12-16 12:57:06 +10:30
Lucas Nicodemus
81db59d864
Merge branch 'general-devel' into sql_improve
2017-12-15 18:38:25 -07:00
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
c9955a74ec
Document OnChestItemChange
2017-12-15 12:14:10 -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
bcc1816071
Update changelog
2017-12-14 20:54:04 -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
863fa706c2
Document OnPlaceChest in Bouncer
2017-12-14 20:28:50 -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
0ac486ab5e
Remove TShockRestTestPlugin
...
1. It hasn't been updated in 6 years.
2. Nobody is going to update it.
2017-12-14 08:33:34 -07:00
Lucas Nicodemus
5f647f087c
(Probably) fix invasions started by TShock being weird
...
TShock used to call the StartInvasion method in Main with a type
and a size, but then in some update it stopped taking a size. So
you have to change a field to change the size, but the problem is
that the field is reset when StartInavsion is called. This means
that any effort to manually change the size would have failed due
to the fact that the field is reset at the end. The order has been
changed to account for this.
In addition, the start size is now set, so the game can report
progress correctly on the current invasion.
2017-12-14 08:08:57 -07:00
Lucas Nicodemus
3f22c52698
Move StartInvasion() out of the TShock main class
2017-12-14 07:56:41 -07:00
Lucas Nicodemus
5cd5bdaaa0
Move OnLiquidSet to Bouncer
2017-12-14 07:46:29 -07:00
Lucas Nicodemus
2f4b1a5bfc
Merge branch 'general-devel' into fragments
2017-12-14 07:06:31 -07:00
Ziteng Wang
ac28a251f2
Merge pull request #1558 from Pryaxis/better-readme
...
New readme, docs, infra for devs
2017-12-14 00:06:19 -08:00
Lucas Nicodemus
9d6de89a0b
Merge branch 'general-devel' into better-readme
2017-12-14 00:38:36 -07:00
Chris
4bd23baa7b
Merge pull request #1559 from Pryaxis/better-fts
...
Switch the "auth system" to "initial setup system" everywhere.
2017-12-14 18:04:31 +10:30
Lucas Nicodemus
e16b7bea36
Merge branch 'general-devel' into better-fts
2017-12-14 00:19:49 -07:00
Lucas Nicodemus
7b0fb148bc
Merge branch 'general-devel' into better-readme
2017-12-14 00:19:32 -07:00