Skip to content

Commit 5e144c9

Browse files
authored
[Minor] Repair the manager after unit conversion (#1688)
![convertfix](https://github.com/user-attachments/assets/1eabbaba-8d7d-4135-89ca-495c559089e6) After the conversion, the unit may lose the manager or retain some unnecessary ones. now they have been repaired. In `rulesmd.ini`: ```ini [SOMETECHNO] ; TechnoType Convert.ResetMindControl= ; boolean, default to false ``` - After the unit conversion is completed, its mind control can be reset. - If `Convert.ResetMindControl=no` and there are no warheads in the unit that use `MindControl=yes`, then the controlled units that exceed the maximum value will be released. --------- 单位在变形后会丢失管理器或是留下一些不需要的管理器,现在它们被修复了。 In `rulesmd.ini`: ```ini [SOMETECHNO] ; TechnoType Convert.ResetMindControl= ; boolean, default to false ``` - 单位变形结束后可以重置其心灵控制。 - 如果`Convert.ResetMindControl=no`且单位没有任何使用了`MindControl=yes`的弹头,那么超出最大值的被控制单位会得到解放。
1 parent 722eb64 commit 5e144c9

File tree

10 files changed

+624
-63
lines changed

10 files changed

+624
-63
lines changed

CREDITS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@ This page lists all the individual contributions to the project by their author.
533533
- AI vehicle production update code
534534
- parts of TechnoType conversion placeholder code
535535
- **ststl, FlyStar, NaotoYuuki, Saigyouji, JunJacobYoung** - Digital Display
536+
- **ststl, FlyStar** - Fixed some units of Ares crashing after deployment conversion
536537
- **SukaHati (Erzoid)** - Minimum interceptor guard range
537538
- **E1 Elite** - TileSet 255 and above bridge repair fix
538539
- **AutoGavy** - interceptor logic, Warhead critical hit logic

docs/Fixed-or-Improved-Logics.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ This page describes all ingame logics that are fixed or improved in Phobos witho
246246
- Allowed Ares' `SW.AuxBuildings` and `SW.NegBuildings` to count building upgrades.
247247
- Taking over Ares' AlphaImage respawn logic to make it not recreate in every frame for buildings, static techno and techno without turret, in order to reduce lags from it.
248248
- Fixed an issue where a portion of Ares's trigger event 75/77 was determined unsuccessfully.
249+
- Fixed some units of Ares crashing after deployment conversion.
249250

250251
## Aircraft
251252

docs/New-or-Enhanced-Logics.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1752,6 +1752,17 @@ WarpInWeapon.UseDistanceAsDamage=false ; boolean
17521752
WarpOutWeapon= ; WeaponType
17531753
```
17541754

1755+
### Reset MindControl after transformation
1756+
1757+
- After the unit conversion is completed, its mind control can be reset.
1758+
- If `Convert.ResetMindControl=no` and there are no warheads in the unit that use `MindControl=yes`, then the controlled units that exceed the maximum value will be released.
1759+
1760+
In `rulesmd.ini`:
1761+
```ini
1762+
[SOMETECHNO] ; TechnoType
1763+
Convert.ResetMindControl= ; boolean, default to false
1764+
```
1765+
17551766
## Terrain
17561767

17571768
### Destroy animation & sound

docs/Whats-New.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ Fixes / interactions with other extensions:
413413
- Allowed `AuxBuilding` and Ares' `SW.Aux/NegBuildings` to count building upgrades (by Ollerus)
414414
- Taking over Ares' AlphaImage respawn logic to reduce lags from it (by NetsuNegi)
415415
- Fixed an issue where a portion of Ares's trigger event 75/77 was determined unsuccessfully (by FlyStar)
416+
- Fixed the issue where some units crashed after the deployment transformation (by ststl, FlyStar)
416417
417418
```
418419

0 commit comments

Comments
 (0)