NPCv3_0_4
What's new
V3.0.4
Whats New
-
Physical ram attack. About 1 in 4 Chance of the companion's attacks are charges and rams to the target directly instead of firing a photon bullet all the time. — same damage, same cooldown, same line-of-sight requirement, just a different delivery.
-
A chargeable AoE Photon Blast that auto-fires on the NPC's next attack once its meter fills. Hits every monster within 10 blocks for 10× normal damage (walls don't block it) and heals every nearby player with Regeneration V for 10 seconds.
Charge sources:
+2% per NPC bullet or ram hit
+2% per hit you land on an enemy
+1% per hit you take
In-game Photon Blast meter:
A live actionbar display, shown for your main NPC once it's evolved.
-
0% PB [- - - - - - - - - -] 0%
-
10% PB [■- - - - - - - - -] 10%
-
20% PB [■■- - - - - - - -] 20%
-
30% PB [■■■- - - - - - -] 30%
-
40% PB [■■■■- - - - - -] 40%
-
50% PB [■■■■■- - - - -] 50%
-
60% PB [■■■■■■- - - -] 60%
-
70% PB [■■■■■■■- - -] 70%
-
80% PB [■■■■■■■■- -] 80%
-
90% PB [■■■■■■■■■-] 90%
-
100% Photon Blast READY! (next attack)
Changes
-
Performance improvements. Reduced redundant entity lookups across the addon's tick loops — the legacy-save migration check now only runs once per player instead of on every single lookup, and the photon-bullet firing check was folded into the main movement loop instead of running as a separate, duplicate query. Net effect: roughly half the per-player entity queries per second, which should meaningfully reduce lag with multiple players/companions active.
-
Disabled unnecessary physics overhead (world collision, piston pushability) on the companion entity — it's always directly re-positioned by script every tick, so these were pure recurring cost with no actual effect.
-
The periodic 10-second snapshot (which backs up a companion's stats/color/evolution/etc. to the player) now skips writing entirely if nothing has actually changed/Updated since the last snapshot, instead of rewriting the same values every time.
Fixed
-
NPCs set to Stay no longer freeze in place — idle bob, feeding bob, and random idle fidgets (spin/wiggle/bob) now keep playing while staying put, same as while following.
This mod has no additional files

