Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CREDITS.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ This page lists all the individual contributions to the project by their author.
- Unit & infantry auto-conversion on ammo change
- Restore the ScriptType action#24 `Play speech` from Tiberian Sun
- Modify ammo on impact
- Tiberium veins overlay palette fix
- **Starkku**:
- Misc. minor bugfixes & improvements
- AI script actions:
Expand Down
1 change: 1 addition & 0 deletions docs/Fixed-or-Improved-Logics.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ This page describes all ingame logics that are fixed or improved in Phobos witho
- Fixed the issue where vehicles always finish turret resetting first before turn to a new attack target, now it should turn to new target immediately.
- Fixed the bug that computer player record cannot be log normally in non English mode.
- Fixed the bug that setting `WalkRate=0` on a TechnoType crashed the game (integer divide-by-zero) the moment an object of that type started moving; `WalkRate=0` is now treated like `IdleRate=0`: the walk animation/footstep tick never fires, so a moving unit behaves as if standing still.
- Fixed the bug where Tiberium veins overlay used the wrong palette instead of matching the Veinhole Monster.

## Fixes / interactions with other extensions

Expand Down
1 change: 1 addition & 0 deletions docs/Whats-New.md
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ HideShakeEffects=false ; boolean
- Fixed the bug where `Ranged=true` causes projectiles using the new Trajectory to ignore settings such as `BounceTimes` (by Noble_Fish)
- Fixed `DiscardOn=entry` AttachEffects not triggering `ExpireWeapon` with on-discard trigger on entry (by Starkku)
- Fixed several shield respawn/self heal issues (by Ollerus)
- Fixed the bug where Tiberium veins overlay used the wrong palette instead of matching the Veinhole Monster (by FS-21)

#### Fixes / interactions with other extensions:
- Allowed `SW.ShowCameo` and `SW.ManualFire` to work independently of `SW.AutoFire` (by Noble_Fish)
Expand Down
3 changes: 3 additions & 0 deletions docs/locale/zh_CN/LC_MESSAGES/CREDITS.po
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,9 @@ msgstr "复原了《泰伯利亚之日》中的动作脚本 `24 - 播放语音`"
msgid "Modify ammo on impact"
msgstr "修改弹药弹头"

msgid "Tiberium veins overlay palette fix"
msgstr "泰伯利亚静脉蔓延地表色板修复"

msgid "**Starkku**:"
msgstr "**Starkku**:"

Expand Down
5 changes: 5 additions & 0 deletions docs/locale/zh_CN/LC_MESSAGES/Fixed-or-Improved-Logics.po
Original file line number Diff line number Diff line change
Expand Up @@ -1724,6 +1724,11 @@ msgstr ""
"修复了单位设置 `WalkRate=0` 时一开始移动游戏就会崩溃的 Bug(整数除零);现在 `WalkRate=0` 与 "
"`IdleRate=0` 同样处理——移动动画/移动音效永不触发,移动中的单位表现为静止(滑行)。"

msgid ""
"Fixed the bug where Tiberium veins overlay used the wrong palette instead of "
"matching the Veinhole Monster."
msgstr "修复了泰伯利亚静脉蔓延地表使用了错误的色板而未能与静脉孔怪物匹配的 Bug。"

msgid "Fixes / interactions with other extensions"
msgstr "修复或与其他扩展的交互"

Expand Down
5 changes: 5 additions & 0 deletions docs/locale/zh_CN/LC_MESSAGES/Whats-New.po
Original file line number Diff line number Diff line change
Expand Up @@ -996,6 +996,11 @@ msgstr ""
msgid "Fixed several shield respawn/self heal issues (by Ollerus)"
msgstr "修复了护盾重生/自愈的一系列问题(by Ollerus)"

msgid ""
"Fixed the bug where Tiberium veins overlay used the wrong palette instead of "
"matching the Veinhole Monster (by FS-21)"
msgstr "修复了泰伯利亚静脉蔓延地表使用了错误的色板而未能与静脉孔怪物匹配的 Bug(by FS-21)"

msgid "Fixes / interactions with other extensions:"
msgstr "其他扩展引擎相关的修复/交互:"

Expand Down
15 changes: 15 additions & 0 deletions src/Misc/Hooks.VeinholeMonster.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
#include <Ext/Anim/Body.h>

#include <ColorScheme.h>
#include <HouseClass.h>
#include <VeinholeMonsterClass.h>

///
/// Veinhole Monster
///

// Sets the drawer for veins overlay to match OpenTS and the Veinhole Monster
DEFINE_HOOK_AGAIN(0x47FA5C, CellClass_Draw_Overlay_VeinsPalette, 0x6)
DEFINE_HOOK(0x47FA1F, CellClass_Draw_Overlay_VeinsPalette, 0x6)
{
if (auto const pPlayer = HouseClass::CurrentPlayer)
{
if (auto const pScheme = ColorScheme::Array.GetItemOrDefault(pPlayer->ColorSchemeIndex))
R->EDX(pScheme->LightConvert);
}

return R->Origin() + 0x6;
}

// Loads the veinhole monster art
// Call removed from YR by WW
DEFINE_HOOK(0x4AD097, DisplayClass_ReadIni_LoadVeinholeArt, 0x6)
Expand Down
Loading