tModLoader

tModLoader

50 ratings
Weapon Stat Adjuster
3
   
Award
Favorite
Favorited
Unfavorite
Mod Features: Utilities
Mod Side: Both
tModLoader Version: 1.4.4
Language: English
File Size
Posted
Updated
204.623 KB
10 Aug, 2023 @ 4:39pm
29 Aug, 2024 @ 9:09am
6 Change Notes ( view )

Subscribe to download
Weapon Stat Adjuster

In 1 collection by BlockCrusader
BlockCrusader's Mods
31 items
Description
Weapon Stat Adjuster

Weapon Stat Adjuster is a small, simple, testing mod which adds in a UI that can be used to modify the stats of weapons. The adjuster can modify the following stats;
  • Damage: x0.0001 to x10000
  • Critical Strike Chance: -100 to +100
  • Knockback: x0 to x100
  • Use/Attack Speed: x0.01 to x100
  • Velocity: x0.01 to x100
  • Size*: x0.01 to x100
*Only affects the hitboxes of swung weapons; has no impact on projectiles

To use the adjuster, bind a key to this mod's 'Toggle Stat Adjuster' keybind, in the Controls section of the Settings Menu. Once a key is set, pressing it will toggle the UI at will.
From there, the UI itself should be intuitive, and includes tooltips for all stat fields and buttons.

It is worth noting testing/cheat mods with item stat customizers may be more useful in that they may have more options, and can override the stats of a weapon to whatever you want.
However, unlike most of those modifications, the ones provided by this mod can persist over actions such as reforging and exiting the world/game.

Might be good for testing/balancing mod's weapons, or doing challenge playthroughs with a single weapon and adjusting its stats based on progress as manual means of balancing.
Anyways, enjoy!
Originally posted by tModLoader DmgAdj:
Developed By BlockCrusader
75 Comments
BlockCrusader  [author] 23 Jan @ 6:30pm 
Tried to implement both direct stat overrides and the long-overdue by-type adjustments (Sorry for taking so long, I got distracted like a week after someone asked and kinda forgot about it...)...

...Unfortunately I wasn't able to get either to work.
As I suspected, there's no good place to directly override stats other than in their defaults, which always get reset after every enter/exit.
Attempts to implement the by-type adjustment system ended up with me accidentally throwing dozens of 'Object reference not set to an instance of an object' errors and basically crashing the game...
Sorry folks.
BlockCrusader  [author] 23 Jan @ 12:55pm 
@Trueno7890, there are some testing mods that do this already (Ex: Cheat Sheet), though unlike this mod the changes aren't persistent.
I guess I can look into adding a mode that does overrides instead of multipliers for stats.
I'm not sure how feasible it is since usually overrides consist of, well, directly overriding the item's internal values. The issue is that those internal values generally get reset to their defaults each time you leave and rejoin the world/game.
Trueno7890 23 Jan @ 12:27pm 
pls make that not you only can multiply the weapon stat, but change it with any number you want, like normal volcano damage its 50, but i want it to be exactly 5 more damage (55), yea like that PLS, would make whole better the mod and also enyojable
BlockCrusader  [author] 1 Dec, 2024 @ 2:24pm 
@Mission Control, yup that's correct.
Doctor, Knee-Grower 1 Dec, 2024 @ 9:21am 
so this can change individual weapons? so like, only the weapon i choose/hold gets modified? everything else stays?
FlinGuSPluNkuS 16 Nov, 2024 @ 2:48pm 
There are already mods like your idea such as recipe editor, shop editor, and loot editor. I noticed that it takes noticeably longer to reload the mods, but aside from that it makes no difference in performance. If you do decide to further look into it, it would be many peoples' new favorite mod I can say that much :D
timeless_slayer 7 Nov, 2024 @ 3:33pm 
omg
BlockCrusader  [author] 1 Nov, 2024 @ 1:02pm 
@FlinGuSPluNkuS, it'd definitely be a step up from what this mod does atm. I'm not entirley certain how/if data could be saved on a per-type basis but I have a potential idea. That said, making that data persistent might be expensive in terms of memory-usage. When I have the time I'll try and look into it.
FlinGuSPluNkuS 1 Nov, 2024 @ 12:10pm 
I would absolutely love it if the stat adjustments carried over to other weapons of the same time as Sophia was suggesting, how difficult would it be to make a mod that does that?
BlockCrusader  [author] 28 Oct, 2024 @ 6:13am 
Based use-case