Jump to content

Proposed changes for Elwynor

From Galactic Empire wiki
Revision as of 15:55, 27 December 2025 by Manicpop (talk | contribs)
  • fix MAXPLSE off-by-one – MAXPLSE is the maximum amount of planets in a sector. By default this is 5, but an off-by-one issue in GEPLANET.C causes it to be one fewer. This fixes the issue and changes the default to 4 so there is no change in actual gameplay defaults.
  • warp rotation bounds check fix – When specifying a direction to rotate when using the warp command, if an out-of-bounds degree is entered (outside of -180 to 180), the "helm is damaged" error will show. This restructures the command to avoid that.
  • fix for cybs not pursing user on channel 0 – Once a game has loaded all NPCs, Cybertrons will not pursue a ship on user channel 0. Before a Cyb is dispatched to a ship, notclaimed() in GECYBS.C will check to see if this ship is already claimed ("cybmine") by the maximum amount of pursuers. However, since Droids do not set a cybmine value, they default to 0, and notclaimed() counts them. As such, Cybs will never claim this ship. This adds a specific Cyborg check to notclaimed() and adds a cybmine=255 to all new Droids, correcting the problem.
  • cyberbases should never move – Cyberbases should never move, but if you attack one and flee without destroying it, it will attempt to pursue using cyb_check_lockon(). Since its max_accel value is 0, it is unable to rotate. Therefore, it will set itself to a high warp speed, never find the ship it is attempting to pursue, and crash into the galactic barrier. This excludes all cybs with max_accel == 0 from movement routines.