Commit Graph

51 Commits

Author SHA1 Message Date
Mughur
1f98eecb57
CORP: rework (#428)
* corp overhaul: Corp production quality now depends on materials

* corp overhaul: Product price can be set separately for each city

* corp overhaul: export uses relatives

* corp overhaul: ignore energy in quality

* corp overhaul: getProduct() is city dependant

* corp overhaul: bulkbuy available from start

* corp overhaul: add multibuy for leveled upgrads

* corp overhaul: changes to UI

* corp overhaul: base quality 1, reqmat changes

* corp overhaul: puchased material quality is 1

* corp overhaul: get rid of the text box from ta2

* corp overhaul: sold shares limitations

* corp overhaul: coffee -> tea, training -> intern

* corp overhaul: smartsupply has multiple options

* corp overhaul: restart, literature, investore, ui

* corp overhaul: nerf advertising

* corp overhaul: bunch of stuff
2023-03-18 03:12:43 +02:00
David Walker
4dd093606c CORP: Change/fix TA.II to use configured sell amounts
It used to set prices based on current production only.
2023-02-11 23:08:39 -08:00
omuretsu
6d72861304 Fix graceful load for type changes 2023-01-02 15:25:43 -05:00
Snarling
fb1f95c26e
VARIOUS: Various changes prior to release 2.2 (#271)
See PR #271 description
2022-12-29 20:28:53 -05:00
Mughur
556fe8dd33
NETSCRIPT: Added ns.corporation.getConstants, replacing many other corporation getter functions (#260) 2022-12-25 03:33:13 -05:00
Snarling
959307aa13
CORP: Better fix for MP validation (#158)
* Prevent negative profit selling
* Update validation strings for MP
* Allow negative MP formula price
2022-10-25 12:51:03 -04:00
Snarling
5b2a96fa0c
CORPORATION: Happiness/Energy/Morale trend down even for productive corps (#157) 2022-10-25 10:32:20 -04:00
Snarling
5fe89d5599
CORPORATION: Reorganize Industry data (#154) 2022-10-24 21:54:54 -04:00
Olivier Gagnon
f6f023eeb4 Fix tons of typos 2022-10-09 01:25:31 -04:00
Snarling
068533cd2f format, lint, more enums, revert fn rename 2022-10-05 14:52:48 -04:00
Snarling
aa80cf6451 See description
Reverted ToastVariant back to an enum internally. Still exposed to player as just possible strings.
Changed all 1-line documentation comments to actually be 1-line. Moved some because they were not providing documentation for the thing they were trying to.
2022-10-04 06:40:10 -04:00
Snarling
38063f62a7 build fix, lint, remove some instanceof checks 2022-09-27 16:09:32 -04:00
Snarling
bc7c15ad77 corp: classes are types 2022-09-27 15:35:42 -04:00
Snarling
5798c4c7d3 Unify error handling 2022-09-27 15:32:09 -04:00
Mughur
d99d37f191 Bunch of corporation fixes 2022-09-23 13:13:33 +03:00
Olivier Gagnon
ec17cfdaf3 merge corp not async 2022-07-20 17:27:11 -04:00
Olivier Gagnon
6b630753f0 nuke some use of any 2022-07-14 19:00:10 -04:00
Staszek Welsh
b29c8e0039 Stop potential exploit where you switch employees around right before a product finishes 2022-06-02 22:11:34 +01:00
Staszek Welsh
ba7b76369b Remove industry upgrades
There are only two industry upgrades, one of which is buying coffee
which is not an upgrade, and for the office not the industry. Moving
that to the office leaves just hiring AdVerts, which is better as an
explicitly named set of methods.
2022-06-02 02:43:22 +01:00
Olivier Gagnon
48f80f25d6 fmt and lint 2022-04-06 19:30:08 -04:00
hydroflame
d955398a68
Merge pull request #2757 from ltoni90/bugfix/2719_Corporation_Expressions
Bug fix corporation expressions
2022-03-10 22:15:39 -05:00
BB
2f4d879c16 Trailing whitespace and files not ending with \n are now illegal 2022-03-08 22:51:02 +01:00
Luca Montagna
bd775f167e fixed temp evaluation of MAX and PROD for products 2022-01-22 13:58:51 +01:00
Luca Montagna
bfa271881b fixed temporary evaluation of MAX and PROD 2022-01-22 13:32:35 +01:00
hydroflame
bb34d6b582
Merge pull request #2618 from pigalot/Corp-Api-Updates
Corp api updates
2022-01-18 18:05:23 -05:00
pigalot
416c4ad619 swap if for Math.min 2022-01-16 16:12:00 +00:00
pigalot
4f391682b7 Fix for unneeded extra = 2022-01-16 16:12:00 +00:00
pigalot
abdc786403 prevent DreamSense from pushing over max 2022-01-16 16:11:32 +00:00
pigalot
e245cc471a Prevent awareness and pop going over max 2022-01-16 16:11:31 +00:00
nickofolas
ab841f7530 Refactor for ... in loops 2022-01-15 18:45:03 -06:00
Olivier Gagnon
737276e855 corp api 2021-12-03 23:06:04 -05:00
Olivier Gagnon
0114c92829 fix decimal 2021-11-11 21:35:26 -05:00
hydroflame
70ffe25bb4
Revert "bunch of bugfixes" 2021-11-11 20:06:05 -05:00
Olivier Gagnon
d91d7c564e bunch of bugfixes 2021-11-11 19:56:09 -05:00
Olivier Gagnon
cb6dfd1656 Real Estate takes a LITTLE bit of room 2021-10-28 00:06:57 -04:00
Olivier Gagnon
56c8a23631 corp MAXMPPROD is now case insensitive 2021-10-11 22:54:28 -04:00
Olivier Gagnon
1335ca8e01 Impossible to buy real estate with negative money 2021-10-11 18:22:57 -04:00
Olivier Gagnon
5ba7b2796d build gang in mui 2021-10-01 15:39:56 -04:00
Olivier Gagnon
510fcedf90 convert some corp to mui 2021-09-30 13:51:55 -04:00
Olivier Gagnon
06f716c0fa moved a bunch of files 2021-09-25 14:42:57 -04:00
Olivier Gagnon
e5dcb424a2 sneak in corp API. 2021-09-10 02:17:55 -04:00
Olivier Gagnon
2a13db39c7 fix sleeve memory bug 2021-09-08 23:47:34 -04:00
Olivier Gagnon
bc034bb417 Added more complex customization to smart supply 2021-09-07 16:46:36 -04:00
Olivier Gagnon
faa6f75027 UI improvements for corps. 2021-09-07 02:03:39 -04:00
Olivier Gagnon
cd43f25bf5 make smart supply actually kinda smart 2021-09-07 01:14:55 -04:00
Olivier Gagnon
a18bdd6afc prettify, sorry for the big ass commit 2021-09-04 19:09:30 -04:00
Olivier Gagnon
f987ff9e2a no more any in corp 2021-08-31 15:51:27 -04:00
Olivier Gagnon
d65cbf07f4 Narrow down corporation types 2021-08-31 14:47:07 -04:00
Olivier Gagnon
a2379b21ec more conversion 2021-08-31 03:39:04 -04:00
Olivier Gagnon
1ae17677c0 jsts corporation 2021-08-31 03:07:20 -04:00