Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Accedi
chemicalcrux
/
macrovision
Segui
1
Vota
0
Forka
0
Codice
Problemi
5
Pull Requests
0
Rilasci
10
Wiki
Attività
Sfoglia il codice sorgente
Sort buildings by height
tags/v0.0.6
Fen Dweller
5 anni fa
parent
330972311f
commit
2fd8298f29
1 ha cambiato i file
con
6 aggiunte
e
0 eliminazioni
Visualizzazione separata
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-0
presets/buildings.js
+ 6
- 0
presets/buildings.js
Vedi File
@@ -119,5 +119,11 @@ function makeBuildings() {
)
});
results.sort((b1, b2) => {
e1 = b1.constructor();
e2 = b2.constructor();
return -math.subtract(e1.views[e1.defaultView].height, e2.views[e2.defaultView].height).value;
});
return results;
}
Write
Preview
Loading…
Annulla
Salva