Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
278 commits
Select commit Hold shift + click to select a range
3ae80c2
Revert "AdventureInventory: Remove armor vanity slots"
MatteSevai Jun 15, 2025
6cd504b
added new chloro rate options
MatteSevai Jun 19, 2025
dab65d8
Added shimmer crafting for regualr ass mimics. Also changed plantera …
EJCrispy Jun 19, 2025
8088c7e
readded tikki no kb
MatteSevai Jun 21, 2025
53cf986
remnoved duplicate code
MatteSevai Jun 22, 2025
194f1da
updated icon
MatteSevai Jul 2, 2025
8155805
nerfged beetle might buff
MatteSevai Jul 2, 2025
f836cc9
upped unholy trident drop rates
MatteSevai Jul 2, 2025
2dfdde9
added bad luck shimmer recipes for dungeon
MatteSevai Jul 2, 2025
6aae84f
Merge branch 'master' into feature/missinginmaster
MatteSevai Jul 2, 2025
ef8ae4b
plant first drop chagned
MatteSevai Jul 9, 2025
fa960e9
power cell now yellow rarity
MatteSevai Jul 9, 2025
73fafcd
Added bad luck crafting to Gold, Desert, Ice, Jungle, and Sky chests
EJCrispy Jul 11, 2025
02e6e56
removed dungeon farming
MatteSevai Jul 11, 2025
1399db5
Reworked nightblow behavior
EJCrispy Jul 11, 2025
c3aab9a
removed extra code
MatteSevai Jul 11, 2025
a2a5066
Merge branch 'pr/42' into feature/missinginmaster
MatteSevai Jul 11, 2025
07c5be5
Thanks resin! he fixed it!
EJCrispy Jul 11, 2025
e3af842
Decreased rotation strength and requires usage to home to mouse now
EJCrispy Jul 11, 2025
d711dcf
changed some stats
MatteSevai Jul 11, 2025
d2ecf1e
Merge branch 'feature/NightglowRework' into feature/missinginmaster
MatteSevai Jul 11, 2025
cf59015
Merge branch 'master' into feature/missinginmaster
MatteSevai Jul 12, 2025
cb262d0
aaaaaaaaaaaaaaaaa
EJCrispy Jul 26, 2025
c0d960b
FUCK YOU NO COMMIT MESSAGE
MatteSevai Jul 26, 2025
5d2d4f4
Merge branch 'pr/44' into feature/missinginmaster
MatteSevai Jul 26, 2025
3cf1594
Its like shiny sytone hotswap but its aneicnt chisel also its not at …
EJCrispy Aug 1, 2025
4892a72
UPDTEASES WHIPS RANGE
MatteSevai Aug 2, 2025
7e2d55a
Merge branch 'pr/45' into feature/missinginmaster
MatteSevai Aug 2, 2025
2acde77
manipulation imp imp imp
EJCrispy Aug 2, 2025
ad57ecb
simple shiny stone
EJCrispy Aug 2, 2025
355feb6
Merge branch 'pr/46' into feature/missinginmaster
MatteSevai Aug 2, 2025
78355e2
Merge branch 'pr/47' into feature/missinginmaster
MatteSevai Aug 2, 2025
03a944d
makes whip buffs work in pvp (NOT DEBUFFS)
EJCrispy Aug 3, 2025
daaa892
RAHHAHAHHA
EJCrispy Aug 14, 2025
d2d16ea
shroomite bar
EJCrispy Aug 16, 2025
1bf0a43
no more old men selling drinks
EJCrispy Aug 16, 2025
5a4094e
chagned dungoen rates
MatteSevai Aug 16, 2025
cbaa06b
Merge branch 'master' into feature/missinginmaster
MatteSevai Aug 16, 2025
dd3363b
Merge branch 'pr/50' into feature/missinginmaster
MatteSevai Aug 16, 2025
2ba4670
Merge branch 'pr/51' into feature/missinginmaster
MatteSevai Aug 16, 2025
1eaea04
Merge branch 'pr/52' into feature/missinginmaster
MatteSevai Aug 16, 2025
3071377
reducedrecipecost
EJCrispy Aug 22, 2025
cd70ebf
WIP GameManager: Correct behavior when managing game phases
drunderscore Jul 12, 2025
6b49cc4
WIP MVP of team health bars
drunderscore Aug 4, 2025
3682e31
Make it less shit. need to fix hitmarker pitch
drunderscore Aug 4, 2025
3dba46e
WIP fix hitsounds + editoral
drunderscore Aug 6, 2025
ec48647
WIP some work
drunderscore Aug 22, 2025
7105311
Removed Dih Fishron Wings but added recipe
EJCrispy Aug 22, 2025
79798b8
this is so ass
EJCrispy Aug 22, 2025
a11b49b
Merge branch 'pr/54' into feature/missinginmaster
MatteSevai Aug 23, 2025
7acf2a7
Merge branch 'pr/53' into feature/missinginmaster
MatteSevai Aug 23, 2025
b04b63b
Added bound demolitionist
minitoast99 Aug 24, 2025
f96dd9f
If player has paladin's shield equipped then they cant receive the bu…
minitoast99 Aug 24, 2025
7da9df0
Merge branch 'master' into feature/missinginmaster
MatteSevai Aug 24, 2025
4ae4d3e
do like some fuck-shit to make boss drops instanced per killer
drunderscore Aug 29, 2025
c82df0c
share damage do other teams
drunderscore Aug 29, 2025
55d318d
WIP FIXME WRONG PLACE null out bossbar when clearing world TML BUG
drunderscore Aug 29, 2025
371a31d
here is the boss bar
drunderscore Aug 29, 2025
9bff2ae
var name edit nbc
drunderscore Aug 29, 2025
e832b63
nit comment
drunderscore Aug 29, 2025
3336b3d
Bro is a choj when he wears his turtle armor
EJCrispy Aug 29, 2025
752d89d
Merge branch 'pr/55' into feature/missinginmaster
MatteSevai Aug 29, 2025
9ce4a84
cahnghed image
MatteSevai Aug 29, 2025
64f69b4
cahgned dash values
MatteSevai Aug 29, 2025
9e81e70
tons of changes and we also added a new system
EJCrispy Aug 30, 2025
40b79ea
changed biome key droprate to 1/250
EJCrispy Aug 30, 2025
4cea8d5
Merge branch 'pr/58' into feature/missinginmaster
MatteSevai Aug 30, 2025
0b74182
Merge branch 'pr/59' into feature/missinginmaster
MatteSevai Aug 30, 2025
94746d6
removed unneeded code
MatteSevai Aug 30, 2025
e3a6ecf
ADDED first kill rule wiht new system for plantera
MatteSevai Aug 30, 2025
071c8d1
nerfed cell raet
MatteSevai Aug 30, 2025
7d8d73a
cahnged fire featehr rate and removed extra code
MatteSevai Aug 30, 2025
3ecac63
reverted plantera changes
MatteSevai Sep 3, 2025
2ee11c9
removed old non shimmer dupe recipes and buffed Qs
MatteSevai Sep 3, 2025
1e69620
fix some stuff and damage sharing desync
drunderscore Sep 3, 2025
0b47722
chagned mega shark recip
MatteSevai Sep 3, 2025
f5a5bee
fixed dupe hopefully
EJCrispy Sep 3, 2025
6ab7490
Merge branch 'pr/45' into feature/missinginmaster
MatteSevai Sep 3, 2025
ecf51d2
AdventureBossBar: Render the highest team in front of others
drunderscore Sep 3, 2025
56ea03f
Remove paladin hack
drunderscore Sep 3, 2025
3855857
AdventureNpc: Add whitelist config for NPCs that should use Team Life
drunderscore Sep 3, 2025
b6d6901
we dont need to publizie this anymore
drunderscore Sep 3, 2025
f7ce42e
add comment gotta do this
drunderscore Sep 3, 2025
708c529
AdventureNpc: Add configurable percentage of damage to share
drunderscore Sep 4, 2025
d7a9fcd
Merge branch 'feature/team-npc-life' into feature/missinginmaster
MatteSevai Sep 6, 2025
4f1bda7
ok dont show if you dont hit
drunderscore Sep 6, 2025
8a734c6
Merge branch 'feature/team-npc-life' into feature/missinginmaster
MatteSevai Sep 6, 2025
4c79956
updated icons
MatteSevai Sep 6, 2025
e63d4d5
AdventureNpc: Add FIXME comment about config changes desync
drunderscore Sep 9, 2025
148888a
AdventureNpc: Respect `NPC.realLife` when calculating team life
drunderscore Sep 9, 2025
c339e8f
Merge branch 'feature/team-npc-life' into feature/missinginmaster
MatteSevai Sep 10, 2025
eec9439
queen bee isntant;y spaws bound witchy D
EJCrispy Sep 13, 2025
2d05940
BABY CANDY
EJCrispy Sep 13, 2025
0655cf8
Merge branch 'pr/62' into feature/missinginmaster
MatteSevai Sep 13, 2025
76abf6b
Merge branch 'pr/63' into feature/missinginmaster
MatteSevai Sep 13, 2025
f9d782f
makes magic archers not drop magic quiver. YOu can now get a quiver p…
EJCrispy Sep 13, 2025
c7c6c7c
Merge branch 'pr/64' into feature/missinginmaster
MatteSevai Sep 13, 2025
fe0c69a
Twins will now be unable to die if they are not both on 1 hp
EJCrispy Sep 15, 2025
0a450ab
Update AdventureNpc.cs
EJCrispy Sep 15, 2025
33e013a
Merge branch 'pr/66' into feature/missinginmaster
MatteSevai Sep 15, 2025
8eaa7ea
fixed two problems! Should interact better with team boss HP
EJCrispy Sep 15, 2025
d6eef54
Merge branch 'pr/66' into feature/missinginmaster
MatteSevai Sep 15, 2025
4d3de04
another update, making both twins die when one dies
EJCrispy Sep 15, 2025
ef335d0
Merge branch 'pr/66' into feature/missinginmaster
MatteSevai Sep 15, 2025
8c18ef0
Now properly netsyncs and also attributes kill credit
EJCrispy Sep 15, 2025
1045627
Merge branch 'pr/66' into feature/missinginmaster
MatteSevai Sep 15, 2025
23b72b3
I'm so fucking sorry underscore ut it works dude
EJCrispy Sep 15, 2025
ec5abe5
makes it so that the first time a player joins the world, they get th…
EJCrispy Sep 16, 2025
2441481
Merge branch 'pr/68' into feature/missinginmaster
MatteSevai Sep 17, 2025
2706269
better luck in shimmer
MatteSevai Sep 17, 2025
ced5155
disabled team enforcement
MatteSevai Sep 18, 2025
a77bf05
this could've been realllllly bad
EJCrispy Sep 18, 2025
4514881
fixes to make things work
EJCrispy Sep 18, 2025
c4878d0
Random mech spawns! Yikes!
EJCrispy Sep 19, 2025
1deb7c1
Merge branch 'pr/63' into feature/missinginmaster
MatteSevai Sep 19, 2025
134ce64
Merge branch 'pr/68' into feature/missinginmaster
MatteSevai Sep 19, 2025
da5af0b
Merge branch 'pr/72' into feature/missinginmaster
MatteSevai Sep 19, 2025
5563f7c
im dumb
EJCrispy Sep 19, 2025
8e81365
Merge branch 'pr/63' into feature/missinginmaster
MatteSevai Sep 19, 2025
04964e5
Merge branch 'master' into feature/missinginmaster
MatteSevai Sep 19, 2025
05e62c2
nerfed beetle might
MatteSevai Sep 19, 2025
076ef78
spoawn debuff
EJCrispy Sep 19, 2025
12ec998
Merge branch 'pr/74' into feature/missinginmaster
MatteSevai Sep 19, 2025
a9d5cef
made ranges make sense
MatteSevai Sep 22, 2025
3ea05e8
chagned thing to be not inverted thanks
MatteSevai Sep 22, 2025
f715710
fixed meetle bistake
MatteSevai Sep 22, 2025
81b4df7
up[dated sprite for advventure bag
MatteSevai Sep 22, 2025
1e75ab2
if this was it im gonna be mad
EJCrispy Sep 27, 2025
42b484b
Merge branch 'pr/66' into feature/missinginmaster
MatteSevai Sep 27, 2025
5c8067d
Merge branch 'master' into feature/missinginmaster
MatteSevai Oct 2, 2025
1396297
FUCK FLASKS
EJCrispy Oct 6, 2025
02bbe18
Merge branch 'pr/75' into feature/missinginmaster
MatteSevai Oct 10, 2025
a31d348
It is done.
EJCrispy Oct 11, 2025
5d25656
CHAGNED SOME DROP RATES
MatteSevai Oct 11, 2025
8148c10
Merge branch 'pr/76' into feature/missinginmaster
MatteSevai Oct 11, 2025
47de89e
updates
EJCrispy Oct 11, 2025
d4acc5b
makes the damage work
EJCrispy Oct 11, 2025
70d268e
CHANGES
MatteSevai Oct 11, 2025
ace1bbd
Revert "CHANGES"
MatteSevai Oct 11, 2025
c87cc77
Merge branch 'pr/77' into feature/missinginmaster
MatteSevai Oct 11, 2025
a7838f4
big fixes, qol changes, and balancing
EJCrispy Oct 13, 2025
5a7bc9c
A bunch more changes!
EJCrispy Oct 14, 2025
ac0bc89
fixed localization
MatteSevai Oct 15, 2025
de32e82
Merge branch 'pr/77' into feature/missinginmaster
MatteSevai Oct 15, 2025
37859ca
Update en-US.hjson
MatteSevai Oct 17, 2025
d1739fd
quick fix
EJCrispy Oct 17, 2025
750319e
did so much shit i aint writing allat check the chlog
EJCrispy Oct 18, 2025
e4a273c
fixed philo stone
EJCrispy Oct 18, 2025
f1d2ca7
Merge branch 'pr/77' into feature/missinginmaster
MatteSevai Oct 18, 2025
ccca23f
Merge branch 'pr/80' into feature/missinginmaster
MatteSevai Oct 18, 2025
0491dd1
Plantera pools
EJCrispy Oct 25, 2025
82f59d8
Custom dash keybind implementation with proper netcode syncing
emyhrberg Oct 25, 2025
a896ac4
Merge branch 'feature/CreateDashKeybind' into feature/missinginmaster
MatteSevai Oct 25, 2025
4db9fe5
Merge branch 'pr/81' into feature/missinginmaster
MatteSevai Oct 25, 2025
a9c42be
Fixed so dash can only be performed when player has dash items
emyhrberg Oct 25, 2025
800a291
Merge branch 'feature/CreateDashKeybind' into feature/missinginmaster
MatteSevai Oct 25, 2025
9c3d166
Fixed double dash + double smoke issue with high latency by excluding…
emyhrberg Oct 27, 2025
9afe98a
Merge branch 'feature/CreateDashKeybind' into feature/missinginmaster
MatteSevai Oct 27, 2025
42637fa
bug fixes and nice little things
EJCrispy Oct 29, 2025
03f4406
oops
EJCrispy Oct 29, 2025
7e939ef
Merge branch 'pr/83' into feature/missinginmaster
MatteSevai Oct 29, 2025
dbed279
martians fix hopefully
EJCrispy Oct 31, 2025
ccc1c33
Merge branch 'pr/83' into feature/missinginmaster
MatteSevai Oct 31, 2025
02777f8
no more shame bones and firecracker fixed
EJCrispy Nov 3, 2025
812d271
oh yeah
EJCrispy Nov 3, 2025
5df4ea7
AdventureItem: Add per-team item drop pickups
drunderscore Nov 3, 2025
b971ef6
AdventureDropDatabase: Make boss drops per-team instead of per-player
drunderscore Nov 3, 2025
c59bbf1
firecracker now actually does 7.5 seconds
EJCrispy Nov 5, 2025
f4ec4ab
Merge branch 'pr/84' into feature/missinginmaster
MatteSevai Nov 5, 2025
c4427f4
TNE now is vanilla crafting recipe
EJCrispy Nov 5, 2025
ef9b540
Merge branch 'pr/84' into feature/missinginmaster
MatteSevai Nov 5, 2025
048cc01
Merge branch 'feature/team-npc-life' into feature/missinginmaster
MatteSevai Nov 5, 2025
c5bdebf
mobsy is a sneaky fibber
EJCrispy Nov 7, 2025
fdf4daa
RTP Text cleanup
emyhrberg Nov 8, 2025
ed20943
Added config option to toggle vanilla double tap dash
emyhrberg Nov 8, 2025
4f38ece
Merge branch 'feature/CreateDashKeybind' into feature/missinginmaster
MatteSevai Nov 8, 2025
7d1dba1
Cleanup Adventure Mirror, fixed some of Unity Potion functionality
emyhrberg Nov 8, 2025
99328e2
Adding some debug logs
emyhrberg Nov 10, 2025
bc57e3d
Possible fixes to map bugs
emyhrberg Nov 10, 2025
b944d8d
DONT KEEP YOUR INVENTORY OPEN
emyhrberg Nov 11, 2025
85011ee
New UI
emyhrberg Nov 11, 2025
ba3d466
Mech soul
EJCrispy Nov 13, 2025
52cfe04
the eye of cthulu (wrong)
EJCrispy Nov 13, 2025
36bb7e7
Wip refactor
emyhrberg Nov 13, 2025
946c719
UI pm done
emyhrberg Nov 13, 2025
d71020d
Maybe working
emyhrberg Nov 13, 2025
4fb3de3
Team teleport maybe working
emyhrberg Nov 13, 2025
fbfce82
New UI!
emyhrberg Nov 14, 2025
d13ec22
makes pirahina gun only attack every 40 frames instead of 8 (five tim…
EJCrispy Nov 14, 2025
934338b
Fixing some stuff, adding right click functionality
emyhrberg Nov 14, 2025
513a6b0
Fix crunchy text, added smooth map BGs, UI improvements
emyhrberg Nov 15, 2025
a690c82
fixed a small issue with pirahina gun
EJCrispy Nov 15, 2025
396ea98
Merge branch 'master' into feature/missinginmaster
MatteSevai Nov 15, 2025
76d4c47
Removed .sln and minor fixes
emyhrberg Nov 15, 2025
31560ca
Merge branch 'feature/RTP-Spawn-Selector' into feature/missinginmaster
MatteSevai Nov 15, 2025
b24a6a1
Merge branch 'pr/86' into feature/missinginmaster
MatteSevai Nov 15, 2025
92de964
Fixed 3 issues like playing phase, popup text etc
emyhrberg Nov 15, 2025
4ede504
Revert "Merge branch 'feature/RTP-Spawn-Selector' into feature/missin…
MatteSevai Nov 15, 2025
a6a0e19
Fix item pickup
emyhrberg Nov 15, 2025
78e6a46
Fixed all bugs after first playtesting
emyhrberg Nov 15, 2025
53a2735
Added cool new arrow feature
emyhrberg Nov 16, 2025
5aca4de
Revert "fixed a small issue with pirahina gun"
MatteSevai Nov 16, 2025
c881788
Reapply "Merge branch 'feature/RTP-Spawn-Selector' into feature/missi…
MatteSevai Nov 16, 2025
fda2e63
Merge branch 'feature/RTP-Spawn-Selector' into feature/missinginmaster
MatteSevai Nov 16, 2025
7bbf8da
Revert "Merge branch 'feature/RTP-Spawn-Selector' into feature/missin…
MatteSevai Nov 16, 2025
dd4c0a3
Fixed minor issues for game tonight
emyhrberg Nov 16, 2025
3cae3de
Merge branch 'feature/RTP-Spawn-Selector' into feature/missinginmaster
MatteSevai Nov 16, 2025
19776d2
nerfed the amount of beewax qb gives
EJCrispy Nov 16, 2025
0b261a6
Merge branch 'pr/90' into feature/missinginmaster
MatteSevai Nov 16, 2025
e816cdb
Fixed most uiscales
emyhrberg Nov 16, 2025
b35170c
Merge branch 'feature/RTP-Spawn-Selector' into feature/missinginmaster
MatteSevai Nov 16, 2025
02e0976
Update AdventurePlayer.cs
EJCrispy Nov 19, 2025
e5983af
Added pause button
emyhrberg Nov 19, 2025
b894268
I think all bugs are fixed with AM now
emyhrberg Nov 20, 2025
64f46d5
Starting to implement team beds
emyhrberg Nov 21, 2025
589343a
A fistful of shit
EJCrispy Nov 22, 2025
ab72906
cahnged many drop drates
MatteSevai Nov 24, 2025
735db0c
Merge branch 'master' into feature/missinginmaster
MatteSevai Nov 24, 2025
f4a44fc
WiP fixing teleport position for beds
emyhrberg Nov 24, 2025
d665706
Really good progress on everything
emyhrberg Nov 25, 2025
d76e02f
Merge branch 'feature/HerosModButtons' into feature/missinginmaster
MatteSevai Nov 26, 2025
27ba3ff
Merge branch 'feature/RTP-Spawn-Selector' into feature/missinginmaster
MatteSevai Nov 26, 2025
1cbcdb9
Update en-US.hjson
MatteSevai Nov 26, 2025
be9faf2
Fixed spawnbox to fit all UIScales
emyhrberg Nov 26, 2025
f7fbb4a
Bug fixes to bed teleport system
emyhrberg Nov 27, 2025
c6340af
Merge branch 'feature/RTP-Spawn-Selector' into feature/missinginmaster
MatteSevai Nov 27, 2025
d22ef42
Fixed most bugs after thursday game
emyhrberg Nov 27, 2025
c40e864
Update AdventureDropDatabase.cs
MatteSevai Nov 27, 2025
da6294b
Merge branch 'feature/RTP-Spawn-Selector' into feature/missinginmaster
MatteSevai Nov 27, 2025
3326f23
crazy shit
EJCrispy Nov 29, 2025
7af7703
Merge branch 'pr/91' into feature/missinginmaster
MatteSevai Nov 29, 2025
80d7c6c
Various fixes to chat and more
emyhrberg Dec 1, 2025
227bd4f
Added biome key molds and made them replace the current biome keys
EJCrispy Dec 1, 2025
4810fdc
Mini features
emyhrberg Dec 1, 2025
17b9adb
Fixed spawn selector teammate hover head position
emyhrberg Dec 2, 2025
c61a2d8
Merge branch 'feature/RTP-Spawn-Selector' into feature/missinginmaster
MatteSevai Dec 3, 2025
19ff08c
Hoo boy
EJCrispy Dec 3, 2025
276e0a4
Merge branch 'pr/95' into feature/missinginmaster
MatteSevai Dec 4, 2025
b277e35
Fixed minor spawn teleport issue
emyhrberg Dec 4, 2025
879ac3d
Revert "Merge branch 'feature/RTP-Spawn-Selector' into feature/missin…
MatteSevai Dec 4, 2025
61f00ba
Merge branch 'feature/RTP-Spawn-Selector' into feature/missinginmaster
MatteSevai Dec 4, 2025
e7fa1ea
Updated stop icon
emyhrberg Dec 4, 2025
f5359b8
waddddd
MatteSevai Dec 4, 2025
9990e03
shadow key
EJCrispy Dec 6, 2025
7217782
Update AdventureDropDatabase.cs
MatteSevai Dec 6, 2025
0be778d
Merge branch 'pr/95' into feature/missinginmaster
MatteSevai Dec 6, 2025
1bb8843
Merge branch 'feature/RTP-Spawn-Selector' into feature/missinginmaster
MatteSevai Dec 6, 2025
65adaf4
Refactor DashKeybindSystem
emyhrberg Dec 7, 2025
4694670
Merge branch 'feature/missinginmaster' into feature/CreateDashKeybind
emyhrberg Dec 7, 2025
04ba4b2
Fixed dash sync again
emyhrberg Dec 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
.vs
bin
obj
# we don't need to add the solution to version control
PvPAdventure.sln
*.sln
57 changes: 57 additions & 0 deletions AdventureBossBar.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.DataStructures;
using Terraria.Enums;
using Terraria.GameContent;
using Terraria.ModLoader;

namespace PvPAdventure;

public class AdventureBossBar : GlobalBossBar
{
public override void PostDraw(SpriteBatch spriteBatch, NPC npc, BossBarDrawParams drawParams)
{
// This is a constant position from BigProgressBarHelper.DrawFancyBar
var bossBarPosition = new Point(456, 22);

// Calculated as BigProgressBarHelper does
var rectangle =
Utils.CenteredRectangle(Main.ScreenSize.ToVector2() * new Vector2(0.5f, 1f) + new Vector2(0f, -50f),
bossBarPosition.ToVector2());

var adventureNpc = npc.GetGlobalNPC<AdventureNpc>();

// FIXME: This sort order should be pre-calculated for us so we don't need to do it all the time!
var teamLife = adventureNpc.TeamLife
.Where(kv => adventureNpc.HasBeenHurtByTeam.Contains(kv.Key))
.OrderByDescending(kv => kv.Value);

foreach (var (team, life) in teamLife)
{
// Shouldn't be possible, but be sure not to draw this.
if (team == Team.None)
continue;

var lifeRemaining = (float)life / npc.lifeMax;

var frame = TextureAssets.Pvp[1].Value.Frame(6);
frame.X = frame.Width * (int)team;

// FIXME: Looks a little silly when overlapping, maybe they should get stacked or staggered when on top.
var color = Color.White;
color *= lifeRemaining.Remap(0.85f, 1.0f, 1.0f, 0.0f);

spriteBatch.Draw(
TextureAssets.Pvp[1].Value,
rectangle.TopLeft() + new Vector2(
(bossBarPosition.X * lifeRemaining) - (frame.Height / 2.0f),
-30.0f
),
frame,
color
);
}
}
}
60 changes: 54 additions & 6 deletions AdventureBuff.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;

Expand All @@ -19,20 +21,20 @@ public override void Update(int type, Player player, ref int buffIndex)

if (player.beetleOrbs >= 1)
{
damage += 0.15f;
attackSpeed += 0.15f;
damage += 0.08f;
attackSpeed += 0.08f;
}

if (player.beetleOrbs >= 2)
{
damage += 0.10f;
attackSpeed += 0.10f;
damage += 0.08f;
attackSpeed += 0.08f;
}

if (player.beetleOrbs >= 3)
{
damage += 0.05f;
attackSpeed += 0.20f;
damage += 0.08f;
attackSpeed += 0.08f;
}

player.GetDamage<MeleeDamageClass>() += damage;
Expand All @@ -48,4 +50,50 @@ public override bool RightClick(int type, int buffIndex)

return true;
}

public class RemoveFlaskBuffsOnDeath : ModPlayer
{
// Array of buff IDs to remove on death
private readonly int[] buffsToRemove = { 71, 73, 74, 75, 76, 77, 78, 79 }; //Every single Flask buff that doesn't go away on death for some reason

public override void Kill(double damage, int hitDirection, bool pvp, PlayerDeathReason damageSource)
{

for (int i = 0; i < Player.MaxBuffs; i++)
{
int buffType = Player.buffType[i];


foreach (int buffId in buffsToRemove)
{
if (buffType == buffId)
{
Player.DelBuff(i); // Remove the buff
i--; // Adjust index since we removed a buff
break;
}
}
}
}
}
public class ArcheryNerf : GlobalItem
{
public override void ModifyWeaponDamage(Item item, Player player, ref StatModifier damage)
{
if (player.HasBuff(BuffID.Archery) && item.useAmmo == AmmoID.Arrow)
{
damage /= 1.1f;
}
}
}
public class BuffTextChange : GlobalBuff
{
public override void ModifyBuffText(int type, ref string buffName, ref string tip, ref int rare)
{
if (type == BuffID.Archery)
{
tip = "20% increased arrow speed\nNo longer grants bow damage";
}
}
}
}
10 changes: 10 additions & 0 deletions AdventureClientConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ public class AdventureClientConfig : ModConfig

public PlayerOutlineConfig PlayerOutline { get; set; } = new();
public bool ShiftEnterOpensAllChat { get; set; }

[DefaultValue(true)]
public bool IsVanillaDashEnabled { get; set; }
[DefaultValue(true)] public bool ShowPauseMessage { get; set; }

public class PlayerOutlineConfig
Expand Down Expand Up @@ -125,7 +128,14 @@ public class PlayerKillMarkerConfig : KillMarkerConfig
[DefaultValue(null)] [NullAllowed] public HitMarkerConfig NpcHitMarker { get; set; }
[DefaultValue(null)] [NullAllowed] public PlayerHitMarkerConfig PlayerHitMarker { get; set; }
[DefaultValue(null)] [NullAllowed] public PlayerKillMarkerConfig PlayerKillMarker { get; set; }


}

public SoundEffectConfig SoundEffect { get; set; } = new();

[Header("AdventureMirror")]
[DefaultValue(true)] public bool OpenMapAfterRecall;
[DefaultValue(true)] public bool ShowPopupText;
[DefaultValue(true)] public bool ShowPlayerIndicationWhenWhenHovering;
}
30 changes: 26 additions & 4 deletions AdventureConfig.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using PvPAdventure.Content.Items;
using System;
using System.Collections.Generic;
using System.ComponentModel;
Expand Down Expand Up @@ -194,16 +195,27 @@ public float CalculateMultiplier(float tileDistance) =>
[DefaultValue(3000.0f)]
public float GhostHealMaxDistance { get; set; }

[Range(0.0f, 3000.0f)]
[DefaultValue(3000.0f)]
public float GhostHealMaxDistanceNpc { get; set; }

public class TeamLifeConfig
{
[DefaultValue(0.5f)] public float Share { get; set; } = 0.5f;
}

[Description("Require each team to deal the maximum life in total damage to kill this NPC")]

public Dictionary<NPCDefinition, TeamLifeConfig> TeamLifeNpcs { get; set; } = new();

[Range(0.0f, 1.0f)]
[DefaultValue(0.0f)]


[Description("Reduce the damage of certain projectiles after they have collided or bounced")]
public float ProjectileCollisionDamageReduction { get; set; }

public Dictionary<ProjectileDefinition, float> NoLineOfSightDamageReduction { get; set; } = new();

public bool AwardBountyEveryKill { get; set; }

}

public class Statistics : IEquatable<Statistics>
Expand Down Expand Up @@ -324,6 +336,12 @@ public class WorldGenerationConfig
[DefaultValue(30)] public int PlanteraBulbChanceDenominator { get; set; } = 30;

[DefaultValue(8)] public int ChlorophyteSpreadChanceModifier { get; set; } = 8;

[Range(1, 1000)]
[DefaultValue(300)] public int ChlorophyteGrowChanceModifier { get; set; } = 300;

[Range(1, 999999)]
[DefaultValue(300)] public int ChlorophyteGrowLimitModifier { get; set; } = 300;
}

public WorldGenerationConfig WorldGeneration { get; set; } = new();
Expand All @@ -340,7 +358,6 @@ public class FloatStatistic
public Dictionary<NPCDefinition, FloatStatistic> LifeMaxMultipliers { get; set; } = new();
public Dictionary<NPCDefinition, FloatStatistic> DamageMultipliers { get; set; } = new();
public bool NoMechanicalBossSummonDrops { get; set; }
public bool NoBiomeKeyDrops { get; set; }
}

public NpcBalanceConfig NpcBalance { get; set; } = new();
Expand All @@ -355,6 +372,11 @@ public class ChestItemReplacement
[Range(0, 600)] public int MinimumDamageReceivedByPlayers { get; set; }
[Range(0, 600)] public int MinimumDamageReceivedByPlayersFromPlayer { get; set; }

[Header("AdventureMirror")]
[Range(0, 60 * 60)]
[DefaultValue(4 * 60)]
public int AdventureMirrorRecallFrames { get; set; }

public override bool AcceptClientChanges(ModConfig pendingConfig, int whoAmI, ref NetworkText message)
{
if (pendingConfig is not AdventureConfig pendingAdventureConfig)
Expand Down
Loading