@@ -402,10 +402,10 @@ declare const MINERAL_DENSITY_PROBABILITY: {
402402
403403declare const MINERAL_DENSITY_CHANGE : number ;
404404
405- declare const DENSITY_LOW : number ;
406- declare const DENSITY_MODERATE : number ;
407- declare const DENSITY_HIGH : number ;
408- declare const DENSITY_ULTRA : number ;
405+ declare const DENSITY_LOW : DENSITY_LOW ;
406+ declare const DENSITY_MODERATE : DENSITY_MODERATE ;
407+ declare const DENSITY_HIGH : DENSITY_HIGH ;
408+ declare const DENSITY_ULTRA : DENSITY_ULTRA ;
409409
410410declare const DEPOSIT_EXHAUST_MULTIPLY : number ;
411411declare const DEPOSIT_EXHAUST_POW : number ;
@@ -2733,6 +2733,13 @@ type EffectConstant = EFFECT_INVULNERABILITY | EFFECT_COLLAPSE_TIMER;
27332733
27342734type EFFECT_INVULNERABILITY = 1001 ;
27352735type EFFECT_COLLAPSE_TIMER = 1002 ;
2736+
2737+ type DENSITY_LOW = 1 ;
2738+ type DENSITY_MODERATE = 2 ;
2739+ type DENSITY_HIGH = 3 ;
2740+ type DENSITY_ULTRA = 4 ;
2741+
2742+ type DensityConstant = DENSITY_LOW | DENSITY_MODERATE | DENSITY_HIGH | DENSITY_ULTRA ;
27362743/**
27372744 * The options that can be accepted by `findRoute()` and friends.
27382745 */
@@ -3206,7 +3213,7 @@ interface Mineral<T extends MineralConstant = MineralConstant> extends RoomObjec
32063213 /**
32073214 * The density of this mineral deposit, one of the `DENSITY_*` constants.
32083215 */
3209- density : number ;
3216+ density : DensityConstant ;
32103217 /**
32113218 * The remaining amount of resources.
32123219 */
0 commit comments