更好的城镇npc 预览图

泰拉瑞亚 (Terraria)

更好的城镇npc

Utilitiesquality of lifeEnglishChineseBoth1.4.4

最后更新 2026/08/08文件 1.1 MBID 3775233425

模组简介

【中文】 更好的城镇 NPC 让城镇 NPC 从被动自卫者变成真正会主动发现威胁、追击敌人、选择攻击位置并互相支援的城镇守卫。 本模组强化城镇 NPC 的生存能力、战斗能力和移动决策,同时尽量保留每名 NPC 原有的武器、攻击动画与职业特色。主要数值和索敌距离均可在模组配置中调整。 主要功能 - 城镇 NPC 生命上限默认继承该世界玩家历史最高生命的 100%,每击败一个 Boss 或完成一个事件再增加 5%。 - 城镇 NPC 不继承玩家防御,保留自身原版防御和状态加成。 - 玩家历史生命纪录只升不降并随世界存档保存,更换角色不会丢失。 - 城镇 NPC 会主动搜索敌人、追击、闪避,并在合适位置发动攻击。 - 提供远程、近战、投掷和法术四类战斗逻辑,可分别配置攻击距离、闪避距离和索敌范围。 - 攻击伤害、攻击冷却、投射物速度、追击速度和生命恢复均可配置。 - 所有城镇 NPC 默认获得基础生命恢复(+5 HP/秒)。 - 所有职业的基础伤害倍率默认为 2.5;每击败一个 Boss 或完成一个事件增加 0.1,肉山额外增加 0.2。 Grounded A* 地面寻路 - 城镇 NPC 会根据自身尺寸、重力和移动速度搜索真实可执行的地面路线。 - 支持平地、台阶、斜坡、半砖、跳跃、跌落和主动穿过平台。 - NPC 可以绕过墙体与复杂高差,跨越坑洞,并前往能够实际攻击目标的落脚位置。 - 路径动作使用 Terraria 的碰撞规则进行验证,规划出的跳跃和跌落会携带实际执行参数。 - 对移动中的敌人采用分段路线、后台式逐帧增量搜索和路线续接,避免长距离搜索冻结游戏画面。 - A* 寻路默认开启;寻路路线可视化默认关闭,可在模组配置中开启。 NPC 特化 - 护士会优先寻找并治疗 60 格内受伤的城镇 NPC 或玩家:治疗 NPC 30 HP,治疗玩家 15 HP;没有伤员时会向敌人投掷带毒针筒。 - 服装商每轮发射三枚诅咒弹。 - 公主拥有强化的弹幕范围和视觉效果,并可无视物块发动法术攻击。 - 树妖会强化 Dryad's Ward,并可隔墙施加 Dryad's Bane。 - 松露人可以隔墙召唤蘑菇攻击敌人。 战斗分类 - 远程:军火商、向导、蒸汽朋克人、画家、巫医、海盗、机器人、旅商。 - 近战:染料商、发型师、税收官。 - 投掷:商人、爆破专家、哥布林工匠、机械师、酒保、派对女孩、骷髅商人、圣诞老人、高尔夫球手、动物学家、护士、渔夫。 - 法术:树妖、服装商、巫师、松露人、公主。 命令 - /vtnrefresh:刷新所有城镇 NPC 的生命和检测范围。 - /vtnpath on|off|grid:开启、关闭或切换寻路调试显示。 【English】 Better Town NPCs Turns town NPCs from passive defenders into active town guards that can detect threats, pursue enemies, choose valid attack positions, and support one another. This mod improves town NPC survivability, combat capability, and movement decisions while preserving each NPC's original weapon, attack animation, and class identity whenever possible. Most combat values and engagement ranges can be customized in the mod configuration. Main Features - Town NPC maximum life inherits 100% of the world's historical highest player maximum life by default, plus 5% for each defeated boss or completed event. - Town NPCs do not inherit player defense; their vanilla defense and status bonuses remain intact. - Historical player maximum life only increases, is saved with the world, and remains when switching characters. - Town NPCs actively detect enemies, pursue them, dodge threats, and attack from suitable positions. - Separate Ranged, Melee, Throwing, and Magic combat behaviors, each with configurable attack, dodge, and detection ranges. - Configurable damage, attack cooldown, projectile speed, pursuit speed, and life regeneration. - All town NPCs receive permanent base life regeneration by default (+5 HP per second). - Every class starts with a 2.5 damage multiplier. Each defeated boss or completed event adds 0.1, and Wall of Flesh adds an extra 0.2. Grounded A* Pathfinding - Town NPCs search for physically executable ground routes using their actual size, gravity, and movement speed. - Supports flat ground, steps, slopes, half blocks, jumps, falls, and deliberate platform drop-through actions. - NPCs can route around walls and elevation changes, cross pits, and move toward stable positions from which they can actually attack their target. - Movement edges are validated against Terraria's collision behavior, and planned jumps and falls carry concrete execution parameters. - Moving targets are handled through committed route segments, incremental per-frame searching, and route refills to avoid freezing the game during long searches. - A* pathfinding is enabled by default. Path visualization is disabled by default and can be enabled in the mod configuration. Special NPC Behaviors - The Nurse prioritizes injured town NPCs and players within 60 tiles. She heals NPCs for 30 HP and players for 15 HP; when nobody needs healing, she throws poisoned syringes at enemies. - The Clothier fires three cursed projectiles per attack cycle. - The Princess receives enhanced projectile range and visual effects and can cast through tiles. - The Dryad strengthens Dryad's Ward and can apply Dryad's Bane through walls. - The Truffle can summon mushroom attacks through walls. Combat Classes - Ranged: Arms Dealer, Guide, Steampunker, Painter, Witch Doctor, Pirate, Cyborg, and Traveling Merchant. - Melee: Dye Trader, Stylist, and Tax Collector. - Throwing: Merchant, Demolitionist, Goblin Tinkerer, Mechanic, Tavernkeep, Party Girl, Skeleton Merchant, Santa Claus, Golfer, Zoologist, Nurse, and Angler. - Magic: Dryad, Clothier, Wizard, Truffle, and Princess. Commands - /vtnrefresh: Refreshes town NPC life, defense, and detection ranges. - /vtnpath on|off|grid: Enables, disables, or changes the pathfinding debug display. Developed By Koko

详情图片

条目信息

所属游戏
泰拉瑞亚 (Terraria)
创意工坊 ID
3775233425
文件名
3775233425.bin
文件大小
1.1 MB
最后更新
2026/08/08
内容版本
v1786134120-70953b49013a9127
作者与来源
由原作者发布于 Steam 创意工坊。本站不改变署名,作者信息与原始内容请以 Steam 原始页面 为准。