跳到正文

TBS Damage Multiplied

作者:PoIuYt

A focused Forge 1.20.1 add-on for Torches Become Sunlight (TBS). It fixes only confirmed player-owned TBS implementation paths whose fixed damage omits the player's active generic.attack_damage modifiers.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

TBS Damage Multiplied

A focused Forge 1.20.1 add-on for Torches Become Sunlight (TBS). It fixes only
confirmed player-owned TBS implementation paths whose fixed damage omits the
player’s active generic.attack_damage modifiers. The classifier is intentionally
conservative and is designed to leave vanilla combat, unrelated mods, native TBS
scaling paths, and unknown paths unchanged.

Damage model

For a confirmed fixed path, the original TBS amount D becomes a synthetic
attribute base. The player’s current modifiers are replayed in Minecraft 1.20.1
AttributeInstance order:

(D + sum(ADDITION))
* (1 + sum(MULTIPLY_BASE))
* product(1 + each MULTIPLY_TOTAL)

The player’s ordinary ATTACK_DAMAGE base is not used. Main-hand ItemStack
modifiers are controlled per operation by config; defaults exclude its ADDITION
and include its MULTIPLY_BASE / MULTIPLY_TOTAL. Modifiers from effects, armor,
Curios, relics, and other standard attribute sources remain. The live
AttributeInstance is never mutated.

Safety model

  • Classification is by concrete damage implementation path, not weapon.
  • Only ServerPlayer owners/casters can be multiplied; TBS bosses and NPCs are
    returned unchanged.
  • Known native ATTACK_DAMAGE paths and unknown paths are always left unchanged.
  • Narrow coremod hooks carry a stable path ID and target/owner provenance when the
    audited call site exposes both. A per-thread stack frame is consumed only by its
    matching LivingHurtEvent, then balanced after hurt, preventing hook + event
    double application without crossing nested damage calls.
  • Ability-driven fixed hits are marked at their audited playerAttack -> hurt call
    sites; their path is never inferred merely from whichever TBS ability is active.
  • Genuine left-click attacks are excluded because vanilla already calculated
    their complete attack attribute.

Configuration

The common Forge config is generated as
config/tbs_damage_multiplied-common.toml. Every fixed path has ordinary
ForgeConfigSpec.BooleanValue entries suitable for generic Forge config GUIs:

[paths.tbs.ice_crystal_hit]
enabled = true
addition = false
multiply_base = true
multiply_total = true
main_hand_addition = false
main_hand_multiply_base = true
main_hand_multiply_total = true

All fixed paths default to compatibility scaling enabled, with ADDITION
disabled. Main-hand ADDITION is excluded by default, while main-hand
MULTIPLY_BASE and MULTIPLY_TOTAL are included by default; each can be changed
per path. General settings provide a master switch and opt-in path-oriented
diagnostics.

The Rosmontis Embrace player assist path retains its original fixed 16F as
the base and only replays MULTIPLY_BASE / MULTIPLY_TOTAL; ADDITION is
always ignored for that path because the fixed skill value already represents
the complete skill base.

Audited target

The integration and exact coremod call sites were audited against the local
torchesbecomesunlight-0.5.0-hotfix2.jar (whose embedded mod metadata reports
version 1.20.1-0.4.2). A future TBS bytecode change deliberately fails the
affected transformer loudly instead of silently patching an uncertain path.

Credits

Torches Become Sunlight is created by free fish and its contributors.

This project is an unofficial compatibility add-on and is not affiliated with or
endorsed by the Torches Become Sunlight developers.

License

GNU General Public License v3.0. See LICENSE.

Torches Become Sunlight is distributed under GPL-3.0. This project is released under the same license.

常见问题

TBS Damage Multiplied 支持哪些 Minecraft 版本?

TBS Damage Multiplied 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

TBS Damage Multiplied 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

PoIuYt 的其他作品

查看全部 →