Changeset 25213

Timestamp:
Apr 9, 2021, 7:55:05 AM (3 years ago)
Author:
Freagarach
Message:

Queue techs at structure with the lowest queue length.

Instead of queueing all techs at the lowest ID.

Patch by: @n1xc0d3r
Differential revision: D3798
Tested by: @Langbart

Location:
ps/trunk/binaries/data/mods/public/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/binaries/data/mods/public/gui/credits/texts/programming.json

    r24995 r25213  
    175175                { "nick": "mreiland", "name": "Michael Reiland" },
    176176                { "nick": "myconid" },
     177
    177178                { "nick": "nani", "name": "S. N." },
    178179                { "nick": "nd3c3nt", "name": "Gavin Fowler" },
  • ps/trunk/binaries/data/mods/public/gui/session/selection_panels.js

    r25123 r25213  
    594594
    595595        let sortedEntStates = unitEntStates.sort((a, b) =>
    596             (!b.upgrade || !b.upgrade.isUpgrading) - (!a.upgrade || !a.upgrade.isUpgrading));
     596            (!b.upgrade || !b.upgrade.isUpgrading) - (!a.upgrade || !a.upgrade.isUpgrading) ||
     597            (!a.production ? 0 : a.production.queue.length) - (!b.production ? 0 : b.production.queue.length)
     598         );
    597599
    598600        for (let state of sortedEntStates)
Note: See TracChangeset for help on using the changeset viewer.