Page MenuHomeWildfire Games

ProductionQueue cleanup
AbandonedPublic

Authored by Polakrity on May 22 2017, 12:17 AM.

Details

Reviewers
bb
Summary

Cleanup the current code with Coding Conventions standard.
The file is old and he is mentioned some TODOs which have for the most been implanted.

Test Plan

Check if it doesn't breaks anything.

Diff Detail

Repository
rP 0 A.D. Public Repository
Lint
Lint Skipped
Unit
Unit Tests Skipped
Build Status
Buildable 1871
Build 2964: Vulcan BuildJenkins

Event Timeline

Polakrity created this revision.May 22 2017, 12:17 AM
Vulcan added a subscriber: Vulcan.May 22 2017, 7:34 AM

Build has FAILED

Link to build: http://jw:8080/job/phabricator/1296/
See console output for more information: http://jw:8080/job/phabricator/1296/console

bb requested changes to this revision.Aug 17 2017, 3:49 PM
bb added a subscriber: bb.

didn't check for completeness because there was no context.

ProductionQueue.js
51

cap

61

cap

86

make them proper JSdoc: @return {array} - List of entities that can be trained by this building. Same for some below

111

ok, but not necessary, codebase is a mess on these

114

e => ent

140

JSdocs

164

inline seems meh => ok

248

make it a bit descriptive or remove

254

implemented ok

255–256

not done for pop cap, but ok

267

i guess !requiredXp (otherwise ignore the jshint error and leave as if)

289

why that cheatmultiplier?

303–311

better keep it alphabetical order

311

trailling comma

318

nope, leave as is

327

same

329

same*2

342

old comment was better imo

352–358

make alphabetical

358

trailling comma

455

JSdoc

547

make more descriptive

559

-=

585

-= -=

622

!createdEnts.length

637

inline

716

no space

729

-=

751

after a ":" there is no need for a cap right?

787

-=

820

-=

This revision now requires changes to proceed.Aug 17 2017, 3:49 PM

(is such a patch really wanted/needed?)

Polakrity abandoned this revision.Apr 27 2019, 1:03 AM

Better to separate this into several differentials and with real things to cleanup.

In any case, thank you for all your reviews @bb