Commit graph

4087 commits

Author SHA1 Message Date
renovate[bot]
045115ca7a
Update dependency GetText.NET to v1.7.14 2022-10-24 11:10:52 +00:00
Lucas Nicodemus
0c8a9c3e57
Add more i18n-compatible strings in commands 2022-10-24 01:23:23 -06:00
Lucas Nicodemus
41bc22e292
Fix broken interpolation in CharacterManager 2022-10-23 07:22:13 -07:00
BashGuy10
8818885a9e Fix being kicked for using the new sponge types 2022-10-22 20:52:33 -07:00
Lucas Nicodemus
1523b0d67c
Internationalizify more commands
This is most of commands through to projectile bans.
2022-10-22 18:23:40 -07:00
BashGuy10
309f4e5500
Fix flamethrowers kicking players 2022-10-22 17:28:16 -07:00
James Puleo
9dbe8c9e40
Check loadout slots for hacked item stacks 2022-10-22 17:37:00 -04: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
James Puleo
3163c88d4a
Allow PacketTypes.SyncLoadout during early connection
This mirrors the behavior in `MessageBuffer` when only accepting
specific packets under state `10`.
2022-10-22 17:14:56 -04:00
Lucas Nicodemus
4d35ee395e
Version tick: 5.0.0-beta.0.6 2022-10-22 14:01:17 -07:00
Lucas Nicodemus
4632536efb
i18nify some commands
This replaces several strings with i18n-friendly variants so that they
can be internationalized.

Sometimes, the command in English has been reworded, because it was
dumb.

I stopped at GrabUserUserInfo, mostly because I was tired. My
rationale/thinking is that rather than doing a huge commit with the
entire file (which may take a while to build up) it would be better to
get more strings to translators faster. This is because these strings,
in particular, are some of the most important ones to translate.
2022-10-22 01:03:30 -07:00
Janet Blackquill
f63b26ac76 Some i18nifiying 2022-10-21 16:12:04 -04:00
Janet Blackquill
5549cfeded Use global using static for ICatalog methods 2022-10-21 13:25:02 -04:00
Lucas Nicodemus
1646c5e5fd
Use localized "too many login attempts" string
This is primarily a test of the rube goldberg machine but also,
productive work.
2022-10-21 01:23:39 -07:00
Lucas Nicodemus
c297b4523e
Add i18n support to one string
This is mainly to test the extract CI routine that should automatically
commit after this and add the updated extracted string to the .po
template.
2022-10-20 02:21:59 -07:00
Janet Blackquill
77be338e46 Add i18n system 2022-10-20 02:09:29 -04:00
yuyu
9e4028fb9d
Change strings to instanced;
Move the changelog to bottom;
2022-10-19 23:20:41 +08:00
yuyu
69e5e202de
Add localization support for console spam reduction
Signed-off-by: yuyu <kawaiiyuyu@outlook.com>
2022-10-19 22:27:11 +08:00
Lucas Nicodemus
adbca6a99b
Modernize REST field dumper
Dumps to markdown, formatted for docsify instead of readme.io, and also
puts it in the right folder.
2022-10-19 00:46:02 -07:00
Lucas Nicodemus
1b306ff39d
Fix SSC dumper not working
Dumper was being called on the wrong thing (the config and not the
settings).
2022-10-18 23:50:01 -07:00
Lucas Nicodemus
fa9717debf
Change dumper to dump to markdown-ish files 2022-10-18 23:50:01 -07:00
punchready
25500bcccc
Use ad hoc checks for world boundary instead 2022-10-19 05:26:07 +02:00
punchready
4e542d6ef6
Skip tile rect changes close to the world edge 2022-10-19 05:20:18 +02:00
punchready
e53b723bd8
Fix grass mowing keeping hanging vines intact
Creating a long row of grass with vines below and then mowing it without breaking the vines below could cause a tile framing stack overflow due to all vines being cleared at once if one of them is being broken on the server or if the client simply loads the corresponding section.
Warning: this does not fix eventual existing worlds that are already in such a state.
2022-10-19 04:43:27 +02:00
Lucas Nicodemus
7eede03c38
Start to update documentation (#2728)
* Init docsify

* Readme: fix build badge, remove contributors

The "all contributors" section is woefully out of date and for many
reasons, it's not something we're going to support. Going forward, we're
going to try to find a different / better / more inclusive way of doing
contributions in such a way that's meaningful to people.

* Fix build badge again

* Update experimental build download instructions

* Remove note about Travis CI being available

* Update install guide to use TShock.Server.exe.

* ∆: minor changes to setup instructions?

* Remove setup guide because it's out of date

* Update non-dev readme with instructions on using tshock

* Remove experimental downloads section from dev readme

* Add a link to github to non-dev docs

* Change example password

* Update non-dev readme with more data

* Move changelog to docs folder

* Rehead installing tshock

* Embed streamable video

* Create CNAME

* Update CNAME

* Update index to be a little more cool

* Rename homepage

* Rename changelog to changelog

* Document constileation and heaptile providers

* More command line docs

* Update developer readme

* Augment the readme

* Add nuget links

* Add a space

* What is the cost of lies?

* Modernize cli docs

* Document tile providers

* Clarify provider slowness

* Further doument tile providers

* ∆: modify markdown output for permissions to add wikilinks

* Remove AN
2022-10-17 23:52:24 -07:00
Lucas Nicodemus
15077dbccc
Version tick: 5.0.0-beta.0.5 2022-10-17 01:52:20 -07:00
Lucas Nicodemus
20fb5023c1
Merge remote-tracking branch 'drunderscore/fix/add-player-buff' into general-devel 2022-10-14 23:49:15 -07:00
Lucas Nicodemus
368b0b274c
Merge remote-tracking branch 'drunderscore/fix/new-tile-placements' into general-devel 2022-10-14 23:37:18 -07:00
Lucas Nicodemus
9258ee77d4
Merge remote-tracking branch 'drunderscore/fix/bunny-cannon-quick-action' into general-devel 2022-10-14 23:31:44 -07:00
Lucas Nicodemus
882ecef013
Merge remote-tracking branch 'drunderscore/fix/bottomless-honey-bucket-is-real' into general-devel 2022-10-14 23:27:07 -07:00
Lucas Nicodemus
da6a134609
Merge remote-tracking branch 'packmandude/general-devel' into general-devel 2022-10-14 23:19:40 -07:00
Lucas Nicodemus
2bc7541fb5
Merge remote-tracking branch 'origin/renovate/dotnet-monorepo' into general-devel 2022-10-14 23:17:02 -07:00
Lucas Nicodemus
2804f71eb0
Merge remote-tracking branch 'drunderscore/fix/you-cant-have-a-pie-without-cool-whip' into general-devel 2022-10-14 23:16:17 -07:00
Lucas Nicodemus
980ceeb4a1
Merge remote-tracking branch 'stealownz/fix/inferno-fork-onnpcaddbuff-kick' into general-devel 2022-10-14 23:10:45 -07:00
James Puleo
0f3f5d8652
Allow the Cool Whip to apply CoolWhipNPCDebuff buff for 240 ticks 2022-10-14 12:09:38 -04:00
renovate[bot]
44ae34f06e
Update dependency Microsoft.Data.Sqlite to v6.0.10 2022-10-13 05:53:52 +00:00
renovate[bot]
8bff6edfdc
Update dependency MySql.Data to v8.0.31 2022-10-13 05:44:50 +00:00
Luke
a7cd6b6c9c Update ITile with new NetTile data 2022-10-12 16:51:31 +10:00
Luke
818f5fcc59 Read/write new NetTile data 2022-10-12 16:38:15 +10:00
Stealownz
29d08dd606 Fix Inferno Fork's OnFire debuff causing Bouncer reject abnormal buff
Inferno Fork's OnFire debuff was buffed up to `60 * Main.rand.Next(8, 16)`
2022-10-11 22:15:30 +08:00
James Puleo
1df123d2be
Make Bouncer reject Shimmer placement without bucket or whilst banned 2022-10-10 19:00:43 -04:00
James Puleo
bf53c3313c
Make Bouncer allow Bottomless Honey Buckets 2022-10-10 18:59:54 -04:00
James Puleo
4189b4ab1f
Add LiquidType.Shimmer 2022-10-10 18:55:39 -04:00
James Puleo
f2e52d97de
Allow the Axe of Regrowth and the Rubblemaker to pass Bouncer checks
The Axe of Regrowth will place a `Saplings` tile object where a tree
used to be, whilst it's `createItem` does not match that of a sapling.
Added an exception to allow this interaction to succeed.

The Rubblemaker is allowed to place echo piles, which will not match
the `createTile` or `placeStyle` of the created piles (except in one
very specific case, I suppose). Added an exception to allow this
interaction to succeed.

The check for the `style` of the placement to match that of
`SelectedItem` was moved to be later on, after checking the tile type,
and only if the two exceptions above weren't triggered. It will also now
sync the tiles upon failure.
2022-10-10 09:16:16 -04:00
James Puleo
b3a6495eba
Always allow breaking of tiles that are in BreakableWhenPlacing set
These tiles (usually piles) might get destroyed even without a pickaxe,
as result of another placement about to happen.
2022-10-10 09:13:39 -04:00
Lucas Nicodemus
004ff63899
Merge remote-tracking branch 'drunderscore/fix/new-add-buffs-to-npc' into general-devel 2022-10-09 00:36:52 -07:00
Lucas Nicodemus
70d22111b2
Merge remote-tracking branch 'hufang360/general-devel' into general-devel 2022-10-08 12:50:11 -07:00
Lucas Nicodemus
20964a0e8c
Tick version to 5.0.0-beta.0.1 2022-10-08 11:18:00 -07:00
hufang360
678f18b827
Update GetDataHandlers.cs
Correct the mistakes caused by my carelessness.
2022-10-09 01:35:45 +08:00
James Puleo
23fd7acd79
Improve OnPlayerBuff logic to properly handle buffs from other players
Previously, we checked if the target player was null, before checking if
their ID was out of bounds, so the check was moved to be first.
We now check if the buff being applied is within bounds.

We introduce `AddPlayerBuffWhitelist` to replace `WhitelistBuffMaxTime`,
which allows us to specify a maximum amount of ticks a buff can be
applied to another player for, and if it can be applied without the
target being in PvP. If a buff is not within this array, it is *not*
allowed to be applied by other players.

When rejecting from `OnPlayerBuff`, we send a `PlayerBuff` instead of
`PlayerAddBuff`, to sync the current buffs of the target, without
syncing the rejected one.
2022-10-08 13:09:54 -04:00