Dome Keeper 穹顶守护者

Dome Keeper 穹顶守护者

评价数不足
Enemy Health Bar [Legacy]
   
奖励
收藏
已收藏
取消收藏
Version: v4
文件大小
发表于
11.412 KB
1 月 3 日 上午 1:10
1 项改动说明 ( 查看 )

订阅以下载
Enemy Health Bar [Legacy]

描述
Get the improved version here!
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3414357405

Adds a big health bar that shows you the health of one enemy, determined by which one took damage most recently. After a bit of time with no damage being dealt, it disappears.

Important
Does not seem to work very well with the Artillery or Tesla Domes. Untested with most other auxiliary damage dealers.

My guess is that certain circumstances allow them to bypass the "receiveDamage" property this mod relies on, and instead directly affect enemy HP, or they only set "receiveDamage" at an awkward point during each process cycle (most likely setting a hitbox that the enemy collides with, instead of owning a hitbox that collides with the enemy). Because there are very few signals to work with here, and I want compatibility more than anything, that's just going to be how it is.

The only other alternative method I can think of is ugly, and after spending all day on this, I honestly can't be bothered to do it all again just because at the very last moment it turns out to not work only half of the time. I mean, I guess it is on me for only testing with the Laser and Sword Domes... but still.

Confirmed to Work With
  • Laser Dome
  • Sword Dome: Slice, Stab
  • Tesla Dome: Electro Orb
  • Most damage sources also seem to work against diving Divers, for some reason

Confirmed Not to Work With
  • Sword Dome: Stab Bomb
  • Artillery Dome
  • Tesla Dome: Tesla Shot, Quick Shot
  • Droneyard: Battle Grid

Other Notes
The enemy name that shows up in the health bar is based on the internal "techId" property of each monster (using "techId.capitalize()"), which means two things:
  1. Certain enemies might have slightly weird names (missing spaces), like "Bigtick" instead of "Big Tick".
  2. Localization is probably not going to happen. (Couldn't find any localization strings.)

I should note that, the way this mod is designed, it also does not capture the Bloater's regenerating health. (The bar only updates when enemies take damage, after all.)

I am no graphic designer, so the visuals may possibly leave a little bit to be desired. (Evidence of this is the mod icon, which I originally used as a placeholder, but I don't actually know if I can change it.) The bottom edge of the portrait frame also has a tendency to get just slightly covered up by your weapon instructions.

Made this because certain enemies with high health pools were really starting to annoy me.
3 条留言
Iliya 2 月 27 日 上午 7:40 
круто
ProlifePrayerWarrior 1 月 21 日 上午 11:29 
Overall very good!

Can't wait for more damage sources to be compatible.
Igna0o 1 月 16 日 下午 2:12 
That is a great qol mod