Skip to content

Commit 84f17a3

Browse files
authored
Merge pull request #42 from primodiumxyz/emersonhsieh/pri-437-update-mudconfigts-to-v0102
Update `prototypeConfig.ts` to v0.10.2
2 parents 38e597f + 1dbc60a commit 84f17a3

File tree

6 files changed

+1018
-723
lines changed

6 files changed

+1018
-723
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1+
import { EResource } from "./enums";
2+
13
export const DECIMALS = 18;
4+
export const SCALE = 10 ** DECIMALS;
5+
export const BASE_RESERVE = 1000;
6+
export const RESERVE_RESOURCE = EResource.Kimberlite;

contract-source/config/enums.ts

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ export enum EBuilding {
66
IronMine,
77
CopperMine,
88

9+
KimberliteMine,
10+
IridiumMine,
11+
TitaniumMine,
12+
PlatinumMine,
13+
914
// Factories
1015
IronPlateFactory,
1116
AlloyFactory,
@@ -45,13 +50,12 @@ export enum EResource {
4550
IronPlate,
4651
Alloy,
4752
PVCell,
48-
RocketFuel,
4953

5054
// Utilities
5155
U_Electricity,
5256
U_Housing,
5357
U_CapitalShipCapacity,
54-
U_MaxMoves,
58+
U_MaxFleets,
5559
U_Defense,
5660
U_Unraidable,
5761
U_AdvancedUnraidable,
@@ -147,19 +151,6 @@ export enum EObjectives {
147151
TrainStingerDrone2,
148152
TrainStingerDrone3,
149153

150-
RaidRawResources1,
151-
RaidRawResources2,
152-
RaidRawResources3,
153-
RaidFactoryResources1,
154-
RaidFactoryResources2,
155-
RaidFactoryResources3,
156-
157-
DestroyEnemyUnits1,
158-
DestroyEnemyUnits2,
159-
DestroyEnemyUnits3,
160-
DestroyEnemyUnits4,
161-
DestroyEnemyUnits5,
162-
163154
ExpandBase1,
164155
ExpandBase2,
165156
ExpandBase3,
@@ -207,5 +198,9 @@ export const MUDEnums = {
207198
};
208199

209200
function enumToArray(enumObj: object): string[] {
210-
return ["NULL", ...Object.keys(enumObj).filter((key) => isNaN(Number(key))), "LENGTH"];
201+
return [
202+
"NULL",
203+
...Object.keys(enumObj).filter((key) => isNaN(Number(key))),
204+
"LENGTH",
205+
];
211206
}

0 commit comments

Comments
 (0)