
Adds the damage, projectile count and penetration values in the bullet's name.
If the bullet has only one projectile:
(Damage / Penetration)
If the bullet has more than one projectile:
(Damage x ProjectileCount / Penetration)
To install drag the user folder into the SPT’s root folder.
Details
-
GUID
Not Available
-
License
-
Source Code
This will work for 3.10.x just have to change .json version.
thx for this mod
can you please apply multi-lang fix to it?
for now - only one language is modified bullet’s name
working code for multi-language support
(if some players on FIKA have different languages)
(sorry for js instead of ts)
class Mod { locales; postDBLoad(container) { const databaseServer = container.resolve(“DatabaseServer”); // const localeService = container.resolve(“LocaleService”); const tables = databaseServer.getTables(); this.locales = tables.locales.global; const logger = container.resolve(“WinstonLogger”); const itemHelper = container.resolve(“ItemHelper”); const items = Object.values(tables.templates.items); const rounds = items.filter((x) => itemHelper.isOfBaseclass(x._id, BaseClasses_1.BaseClasses.AMMO)); for (const ammo of rounds) { let textToAdd = “”; const itemId = ammo._id; const props = ammo._props; if (props.ProjectileCount > 1) { textToAdd =
(${props.Damage}x${props.ProjectileCount}/${props.PenetrationPower})
; } else { textToAdd =(${props.Damage}/${props.PenetrationPower})
; } this.addToName(itemId, textToAdd); } logger.info(“[Ammo Stats] Sucessfully added DMG and PEN to ammo names.“); } addToName(itemId, addToName, localeArg) { if (!localeArg) { for (const locale in this.locales) { this.addToName(itemId, addToName, locale); } return; } const itemIdName =${itemId} Name
; const originalName = this.locales[localeArg][itemIdName] || this.locales[“en”][itemIdName]; this.locales[localeArg][itemIdName] = originalName + addToName; } }Something like this would be nice for FIKA. Thx for this QoL mod
thx for this mod