Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#3899 closed defect (fixed)

[PATCH] Remove (civ-)unsearchable techs from production queue of captured structure

Reported by: fatherbushido Owned by: sanderd17
Priority: Should Have Milestone: Alpha 21
Component: UI & Simulation Keywords: patch
Cc: Patch:

Description

When capturing a structure, player has access to the tech production queue of this strucure. If player has not the required civ, he can't search this tech which is currently greyed out, it should be completelly remove.

Attachments (7)

patch.diff (6.1 KB ) - added by fatherbushido 8 years ago.
thx to sanderd17 for the tricks and leper for the remarks.
patch.2.diff (7.1 KB ) - added by fatherbushido 8 years ago.
patch.3.diff (7.1 KB ) - added by fatherbushido 8 years ago.
patch.4.diff (6.4 KB ) - added by fatherbushido 8 years ago.
notciv case was broken with last changes
patch.5.diff (6.3 KB ) - added by fatherbushido 8 years ago.
use an array filter for the civ-checked techs
patch.6.diff (6.3 KB ) - added by fatherbushido 8 years ago.
use an arrow function, thx to elexis for the remark
patch.7.diff (6.3 KB ) - added by fatherbushido 8 years ago.
more filters

Download all attachments as: .zip

Change History (9)

by fatherbushido, 8 years ago

Attachment: patch.diff added

thx to sanderd17 for the tricks and leper for the remarks.

by fatherbushido, 8 years ago

Attachment: patch.2.diff added

by fatherbushido, 8 years ago

Attachment: patch.3.diff added

by fatherbushido, 8 years ago

Attachment: patch.4.diff added

notciv case was broken with last changes

by fatherbushido, 8 years ago

Attachment: patch.5.diff added

use an array filter for the civ-checked techs

by fatherbushido, 8 years ago

Attachment: patch.6.diff added

use an arrow function, thx to elexis for the remark

by fatherbushido, 8 years ago

Attachment: patch.7.diff added

more filters

comment:1 by sanderd17, 8 years ago

Owner: set to sanderd17
Resolution: fixed
Status: newclosed

In 18027:

Completely hide techs that aren't researchable by the civ of the owner + cleanup of requirements checking. Patch by fatherbushido. Fixes #3899

comment:2 by sanderd17, 8 years ago

Keywords: review removed
Note: See TracTickets for help on using tickets.