reforged-types 1.0.0-alpha.3 → 1.0.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2367,21 +2367,21 @@ declare const bj_CORPSETYPE_BONE: number;
2367
2367
  * @defaultValue `'DTep'`
2368
2368
  * @see {@link https://lep.duckdns.org/jassbot/doc/bj_ELEVATOR_BLOCKER_CODE}
2369
2369
  */
2370
- declare const bj_ELEVATOR_BLOCKER_CODE: number;
2370
+ declare const bj_ELEVATOR_BLOCKER_CODE: Rawcode<"destructable">;
2371
2371
 
2372
2372
  /**
2373
2373
  * Jass: constant integer (32-bit)
2374
2374
  * @defaultValue `'DTrf'`
2375
2375
  * @see {@link https://lep.duckdns.org/jassbot/doc/bj_ELEVATOR_CODE01}
2376
2376
  */
2377
- declare const bj_ELEVATOR_CODE01: number;
2377
+ declare const bj_ELEVATOR_CODE01: Rawcode<"destructable">;
2378
2378
 
2379
2379
  /**
2380
2380
  * Jass: constant integer (32-bit)
2381
2381
  * @defaultValue `'DTrx'`
2382
2382
  * @see {@link https://lep.duckdns.org/jassbot/doc/bj_ELEVATOR_CODE02}
2383
2383
  */
2384
- declare const bj_ELEVATOR_CODE02: number;
2384
+ declare const bj_ELEVATOR_CODE02: Rawcode<"destructable">;
2385
2385
 
2386
2386
  /**
2387
2387
  * Jass: constant integer (32-bit)
@@ -3322,7 +3322,7 @@ declare let bj_randDistCount: number;
3322
3322
  * Jass: integer (32-bit) array
3323
3323
  * @see {@link https://lep.duckdns.org/jassbot/doc/bj_randDistID}
3324
3324
  */
3325
- declare let bj_randDistID: Record<number, number>;
3325
+ declare let bj_randDistID: Record<number, Rawcode>;
3326
3326
 
3327
3327
  /**
3328
3328
  * Jass: integer (32-bit) array
@@ -4743,7 +4743,7 @@ declare function TriggerRegisterBuildSubmenuEventBJ(trig: trigger): event | unde
4743
4743
  * @returns event
4744
4744
  * @see {@link https://lep.duckdns.org/jassbot/doc/TriggerRegisterBuildCommandEventBJ}
4745
4745
  */
4746
- declare function TriggerRegisterBuildCommandEventBJ(trig: trigger, unitId: number): event | undefined;
4746
+ declare function TriggerRegisterBuildCommandEventBJ(trig: trigger, unitId: Rawcode<"unit">): event | undefined;
4747
4747
 
4748
4748
  /**
4749
4749
  * @param trig - trigger
@@ -4751,7 +4751,7 @@ declare function TriggerRegisterBuildCommandEventBJ(trig: trigger, unitId: numbe
4751
4751
  * @returns event
4752
4752
  * @see {@link https://lep.duckdns.org/jassbot/doc/TriggerRegisterTrainCommandEventBJ}
4753
4753
  */
4754
- declare function TriggerRegisterTrainCommandEventBJ(trig: trigger, unitId: number): event | undefined;
4754
+ declare function TriggerRegisterTrainCommandEventBJ(trig: trigger, unitId: Rawcode<"unit">): event | undefined;
4755
4755
 
4756
4756
  /**
4757
4757
  * @param trig - trigger
@@ -4759,7 +4759,7 @@ declare function TriggerRegisterTrainCommandEventBJ(trig: trigger, unitId: numbe
4759
4759
  * @returns event
4760
4760
  * @see {@link https://lep.duckdns.org/jassbot/doc/TriggerRegisterUpgradeCommandEventBJ}
4761
4761
  */
4762
- declare function TriggerRegisterUpgradeCommandEventBJ(trig: trigger, techId: number): event | undefined;
4762
+ declare function TriggerRegisterUpgradeCommandEventBJ(trig: trigger, techId: Rawcode<"upgrade">): event | undefined;
4763
4763
 
4764
4764
  /**
4765
4765
  * @param trig - trigger
@@ -4958,7 +4958,7 @@ declare function GetLastCreatedLightningBJ(): lightning | undefined;
4958
4958
  * @returns string
4959
4959
  * @see {@link https://lep.duckdns.org/jassbot/doc/GetAbilityEffectBJ}
4960
4960
  */
4961
- declare function GetAbilityEffectBJ(abilcode: number, t: effecttype, index: number): string | undefined;
4961
+ declare function GetAbilityEffectBJ(abilcode: Rawcode<"ability">, t: effecttype, index: number): string | undefined;
4962
4962
 
4963
4963
  /**
4964
4964
  * @param abilcode - integer (32-bit)
@@ -4966,7 +4966,7 @@ declare function GetAbilityEffectBJ(abilcode: number, t: effecttype, index: numb
4966
4966
  * @returns string
4967
4967
  * @see {@link https://lep.duckdns.org/jassbot/doc/GetAbilitySoundBJ}
4968
4968
  */
4969
- declare function GetAbilitySoundBJ(abilcode: number, t: soundtype): string | undefined;
4969
+ declare function GetAbilitySoundBJ(abilcode: Rawcode<"ability">, t: soundtype): string | undefined;
4970
4970
 
4971
4971
  /**
4972
4972
  * @param where - location
@@ -5324,7 +5324,7 @@ declare function ResetTerrainFogBJ(): void;
5324
5324
  * @returns nothing
5325
5325
  * @see {@link https://lep.duckdns.org/jassbot/doc/SetDoodadAnimationBJ}
5326
5326
  */
5327
- declare function SetDoodadAnimationBJ(animName: string, doodadID: number, radius: number, center: location): void;
5327
+ declare function SetDoodadAnimationBJ(animName: string, doodadID: Rawcode<"doodad">, radius: number, center: location): void;
5328
5328
 
5329
5329
  /**
5330
5330
  * @param animName - string
@@ -5333,7 +5333,7 @@ declare function SetDoodadAnimationBJ(animName: string, doodadID: number, radius
5333
5333
  * @returns nothing
5334
5334
  * @see {@link https://lep.duckdns.org/jassbot/doc/SetDoodadAnimationRectBJ}
5335
5335
  */
5336
- declare function SetDoodadAnimationRectBJ(animName: string, doodadID: number, r: rect): void;
5336
+ declare function SetDoodadAnimationRectBJ(animName: string, doodadID: Rawcode<"doodad">, r: rect): void;
5337
5337
 
5338
5338
  /**
5339
5339
  * @param animName - string
@@ -5360,7 +5360,7 @@ declare function AddUnitAnimationPropertiesBJ(add: boolean, animProperties: stri
5360
5360
  * @returns nothing
5361
5361
  * @see {@link https://lep.duckdns.org/jassbot/doc/SetDoodadColorBJ}
5362
5362
  */
5363
- declare function SetDoodadColorBJ(color: playercolor, doodadID: number, radius: number, center: location): void;
5363
+ declare function SetDoodadColorBJ(color: playercolor, doodadID: Rawcode<"doodad">, radius: number, center: location): void;
5364
5364
 
5365
5365
  /**
5366
5366
  * @param color - playercolor
@@ -5369,7 +5369,7 @@ declare function SetDoodadColorBJ(color: playercolor, doodadID: number, radius:
5369
5369
  * @returns nothing
5370
5370
  * @see {@link https://lep.duckdns.org/jassbot/doc/SetDoodadColorRectBJ}
5371
5371
  */
5372
- declare function SetDoodadColorRectBJ(color: playercolor, doodadID: number, r: rect): void;
5372
+ declare function SetDoodadColorRectBJ(color: playercolor, doodadID: Rawcode<"doodad">, r: rect): void;
5373
5373
 
5374
5374
  /**
5375
5375
  * @param color - playercolor
@@ -5953,21 +5953,21 @@ declare function DestroyEffectAfterTimeBJ(whichEffect: effect, time: number): vo
5953
5953
  * @returns commandbuttoneffect
5954
5954
  * @see {@link https://lep.duckdns.org/jassbot/doc/CreateCommandButtonEffectBJ}
5955
5955
  */
5956
- declare function CreateCommandButtonEffectBJ(abilityId: number, order: string): commandbuttoneffect | undefined;
5956
+ declare function CreateCommandButtonEffectBJ(abilityId: Rawcode<"ability">, order: string): commandbuttoneffect | undefined;
5957
5957
 
5958
5958
  /**
5959
5959
  * @param unitId - integer (32-bit)
5960
5960
  * @returns commandbuttoneffect
5961
5961
  * @see {@link https://lep.duckdns.org/jassbot/doc/CreateTrainCommandButtonEffectBJ}
5962
5962
  */
5963
- declare function CreateTrainCommandButtonEffectBJ(unitId: number): commandbuttoneffect | undefined;
5963
+ declare function CreateTrainCommandButtonEffectBJ(unitId: Rawcode<"unit">): commandbuttoneffect | undefined;
5964
5964
 
5965
5965
  /**
5966
5966
  * @param techId - integer (32-bit)
5967
5967
  * @returns commandbuttoneffect
5968
5968
  * @see {@link https://lep.duckdns.org/jassbot/doc/CreateUpgradeCommandButtonEffectBJ}
5969
5969
  */
5970
- declare function CreateUpgradeCommandButtonEffectBJ(techId: number): commandbuttoneffect | undefined;
5970
+ declare function CreateUpgradeCommandButtonEffectBJ(techId: Rawcode<"upgrade">): commandbuttoneffect | undefined;
5971
5971
 
5972
5972
  /**
5973
5973
  * @param order - string
@@ -5981,14 +5981,14 @@ declare function CreateCommonCommandButtonEffectBJ(order: string): commandbutton
5981
5981
  * @returns commandbuttoneffect
5982
5982
  * @see {@link https://lep.duckdns.org/jassbot/doc/CreateLearnCommandButtonEffectBJ}
5983
5983
  */
5984
- declare function CreateLearnCommandButtonEffectBJ(abilityId: number): commandbuttoneffect | undefined;
5984
+ declare function CreateLearnCommandButtonEffectBJ(abilityId: Rawcode<"ability">): commandbuttoneffect | undefined;
5985
5985
 
5986
5986
  /**
5987
5987
  * @param unitId - integer (32-bit)
5988
5988
  * @returns commandbuttoneffect
5989
5989
  * @see {@link https://lep.duckdns.org/jassbot/doc/CreateBuildCommandButtonEffectBJ}
5990
5990
  */
5991
- declare function CreateBuildCommandButtonEffectBJ(unitId: number): commandbuttoneffect | undefined;
5991
+ declare function CreateBuildCommandButtonEffectBJ(unitId: Rawcode<"unit">): commandbuttoneffect | undefined;
5992
5992
 
5993
5993
  /**
5994
5994
  * @returns commandbuttoneffect
@@ -6042,7 +6042,7 @@ declare function SetHeroLevelBJ(whichHero: unit, newLevel: number, showEyeCandy:
6042
6042
  * @returns integer (32-bit)
6043
6043
  * @see {@link https://lep.duckdns.org/jassbot/doc/DecUnitAbilityLevelSwapped}
6044
6044
  */
6045
- declare function DecUnitAbilityLevelSwapped(abilcode: number, whichUnit: unit): number;
6045
+ declare function DecUnitAbilityLevelSwapped(abilcode: Rawcode<"ability">, whichUnit: unit): number;
6046
6046
 
6047
6047
  /**
6048
6048
  * @param abilcode - integer (32-bit)
@@ -6050,7 +6050,7 @@ declare function DecUnitAbilityLevelSwapped(abilcode: number, whichUnit: unit):
6050
6050
  * @returns integer (32-bit)
6051
6051
  * @see {@link https://lep.duckdns.org/jassbot/doc/IncUnitAbilityLevelSwapped}
6052
6052
  */
6053
- declare function IncUnitAbilityLevelSwapped(abilcode: number, whichUnit: unit): number;
6053
+ declare function IncUnitAbilityLevelSwapped(abilcode: Rawcode<"ability">, whichUnit: unit): number;
6054
6054
 
6055
6055
  /**
6056
6056
  * @param abilcode - integer (32-bit)
@@ -6059,7 +6059,7 @@ declare function IncUnitAbilityLevelSwapped(abilcode: number, whichUnit: unit):
6059
6059
  * @returns integer (32-bit)
6060
6060
  * @see {@link https://lep.duckdns.org/jassbot/doc/SetUnitAbilityLevelSwapped}
6061
6061
  */
6062
- declare function SetUnitAbilityLevelSwapped(abilcode: number, whichUnit: unit, level: number): number;
6062
+ declare function SetUnitAbilityLevelSwapped(abilcode: Rawcode<"ability">, whichUnit: unit, level: number): number;
6063
6063
 
6064
6064
  /**
6065
6065
  * @param abilcode - integer (32-bit)
@@ -6067,7 +6067,7 @@ declare function SetUnitAbilityLevelSwapped(abilcode: number, whichUnit: unit, l
6067
6067
  * @returns integer (32-bit)
6068
6068
  * @see {@link https://lep.duckdns.org/jassbot/doc/GetUnitAbilityLevelSwapped}
6069
6069
  */
6070
- declare function GetUnitAbilityLevelSwapped(abilcode: number, whichUnit: unit): number;
6070
+ declare function GetUnitAbilityLevelSwapped(abilcode: Rawcode<"ability">, whichUnit: unit): number;
6071
6071
 
6072
6072
  /**
6073
6073
  * @param whichUnit - unit
@@ -6075,7 +6075,7 @@ declare function GetUnitAbilityLevelSwapped(abilcode: number, whichUnit: unit):
6075
6075
  * @returns boolean
6076
6076
  * @see {@link https://lep.duckdns.org/jassbot/doc/UnitHasBuffBJ}
6077
6077
  */
6078
- declare function UnitHasBuffBJ(whichUnit: unit, buffcode: number): boolean;
6078
+ declare function UnitHasBuffBJ(whichUnit: unit, buffcode: Rawcode<"buff">): boolean;
6079
6079
 
6080
6080
  /**
6081
6081
  * @param buffcode - integer (32-bit)
@@ -6083,7 +6083,7 @@ declare function UnitHasBuffBJ(whichUnit: unit, buffcode: number): boolean;
6083
6083
  * @returns boolean
6084
6084
  * @see {@link https://lep.duckdns.org/jassbot/doc/UnitRemoveBuffBJ}
6085
6085
  */
6086
- declare function UnitRemoveBuffBJ(buffcode: number, whichUnit: unit): boolean;
6086
+ declare function UnitRemoveBuffBJ(buffcode: Rawcode<"buff">, whichUnit: unit): boolean;
6087
6087
 
6088
6088
  /**
6089
6089
  * @param whichItem - item
@@ -6099,7 +6099,7 @@ declare function UnitAddItemSwapped(whichItem: item, whichHero: unit): boolean;
6099
6099
  * @returns item
6100
6100
  * @see {@link https://lep.duckdns.org/jassbot/doc/UnitAddItemByIdSwapped}
6101
6101
  */
6102
- declare function UnitAddItemByIdSwapped(itemId: number, whichHero: unit): item | undefined;
6102
+ declare function UnitAddItemByIdSwapped(itemId: Rawcode<"item">, whichHero: unit): item | undefined;
6103
6103
 
6104
6104
  /**
6105
6105
  * @param whichItem - item
@@ -6123,7 +6123,7 @@ declare function UnitEquipItemSwapped(whichItem: item, whichHero: unit): boolean
6123
6123
  * @returns item
6124
6124
  * @see {@link https://lep.duckdns.org/jassbot/doc/UnitEquipItemByIdSwapped}
6125
6125
  */
6126
- declare function UnitEquipItemByIdSwapped(itemId: number, whichHero: unit): item | undefined;
6126
+ declare function UnitEquipItemByIdSwapped(itemId: Rawcode<"item">, whichHero: unit): item | undefined;
6127
6127
 
6128
6128
  /**
6129
6129
  * @param itemSlot - integer (32-bit)
@@ -6155,7 +6155,7 @@ declare function UnitUnequipItemFromSlotSwapped(whichHero: unit, slot: loadoutsl
6155
6155
  * @returns item
6156
6156
  * @see {@link https://lep.duckdns.org/jassbot/doc/CreateItemLoc}
6157
6157
  */
6158
- declare function CreateItemLoc(itemId: number, loc: location): item | undefined;
6158
+ declare function CreateItemLoc(itemId: Rawcode<"item">, loc: location): item | undefined;
6159
6159
 
6160
6160
  /**
6161
6161
  * @returns item
@@ -6193,7 +6193,7 @@ declare function SetItemPositionLoc(whichItem: item, loc: location): void;
6193
6193
  * @returns integer (32-bit)
6194
6194
  * @see {@link https://lep.duckdns.org/jassbot/doc/GetLearnedSkillBJ}
6195
6195
  */
6196
- declare function GetLearnedSkillBJ(): number;
6196
+ declare function GetLearnedSkillBJ(): Rawcode<"ability">;
6197
6197
 
6198
6198
  /**
6199
6199
  * @param flag - boolean
@@ -6385,7 +6385,7 @@ declare function UnitItemInEquipmentSlotBJ(whichUnit: unit, slot: loadoutslot):
6385
6385
  * @returns integer (32-bit)
6386
6386
  * @see {@link https://lep.duckdns.org/jassbot/doc/GetInventoryIndexOfItemTypeBJ}
6387
6387
  */
6388
- declare function GetInventoryIndexOfItemTypeBJ(whichUnit: unit, itemId: number): number;
6388
+ declare function GetInventoryIndexOfItemTypeBJ(whichUnit: unit, itemId: Rawcode<"item">): number;
6389
6389
 
6390
6390
  /**
6391
6391
  * @param whichUnit - unit
@@ -6393,7 +6393,7 @@ declare function GetInventoryIndexOfItemTypeBJ(whichUnit: unit, itemId: number):
6393
6393
  * @returns item
6394
6394
  * @see {@link https://lep.duckdns.org/jassbot/doc/GetItemOfTypeFromUnitBJ}
6395
6395
  */
6396
- declare function GetItemOfTypeFromUnitBJ(whichUnit: unit, itemId: number): item | undefined;
6396
+ declare function GetItemOfTypeFromUnitBJ(whichUnit: unit, itemId: Rawcode<"item">): item | undefined;
6397
6397
 
6398
6398
  /**
6399
6399
  * @param whichUnit - unit
@@ -6401,7 +6401,7 @@ declare function GetItemOfTypeFromUnitBJ(whichUnit: unit, itemId: number): item
6401
6401
  * @returns boolean
6402
6402
  * @see {@link https://lep.duckdns.org/jassbot/doc/UnitHasItemOfTypeBJ}
6403
6403
  */
6404
- declare function UnitHasItemOfTypeBJ(whichUnit: unit, itemId: number): boolean;
6404
+ declare function UnitHasItemOfTypeBJ(whichUnit: unit, itemId: Rawcode<"item">): boolean;
6405
6405
 
6406
6406
  /**
6407
6407
  * @param whichUnit - unit
@@ -6409,7 +6409,7 @@ declare function UnitHasItemOfTypeBJ(whichUnit: unit, itemId: number): boolean;
6409
6409
  * @returns integer (32-bit)
6410
6410
  * @see {@link https://lep.duckdns.org/jassbot/doc/GetInventoryBagIndexOfItemTypeBJ}
6411
6411
  */
6412
- declare function GetInventoryBagIndexOfItemTypeBJ(whichUnit: unit, itemId: number): number;
6412
+ declare function GetInventoryBagIndexOfItemTypeBJ(whichUnit: unit, itemId: Rawcode<"item">): number;
6413
6413
 
6414
6414
  /**
6415
6415
  * @param whichUnit - unit
@@ -6417,7 +6417,7 @@ declare function GetInventoryBagIndexOfItemTypeBJ(whichUnit: unit, itemId: numbe
6417
6417
  * @returns item
6418
6418
  * @see {@link https://lep.duckdns.org/jassbot/doc/GetItemOfTypeFromUnitBagBJ}
6419
6419
  */
6420
- declare function GetItemOfTypeFromUnitBagBJ(whichUnit: unit, itemId: number): item | undefined;
6420
+ declare function GetItemOfTypeFromUnitBagBJ(whichUnit: unit, itemId: Rawcode<"item">): item | undefined;
6421
6421
 
6422
6422
  /**
6423
6423
  * @param whichUnit - unit
@@ -6425,7 +6425,7 @@ declare function GetItemOfTypeFromUnitBagBJ(whichUnit: unit, itemId: number): it
6425
6425
  * @returns boolean
6426
6426
  * @see {@link https://lep.duckdns.org/jassbot/doc/UnitHasItemOfTypeBaggedBJ}
6427
6427
  */
6428
- declare function UnitHasItemOfTypeBaggedBJ(whichUnit: unit, itemId: number): boolean;
6428
+ declare function UnitHasItemOfTypeBaggedBJ(whichUnit: unit, itemId: Rawcode<"item">): boolean;
6429
6429
 
6430
6430
  /**
6431
6431
  * @param whichUnit - unit
@@ -6449,7 +6449,7 @@ declare function GetItemOfEquipmentTypeFromUnitBagBJ(whichUnit: unit, whichEquip
6449
6449
  * @returns integer (32-bit)
6450
6450
  * @see {@link https://lep.duckdns.org/jassbot/doc/GetEquipmentInventoryIndexOfItemTypeBJ}
6451
6451
  */
6452
- declare function GetEquipmentInventoryIndexOfItemTypeBJ(whichUnit: unit, itemId: number): number;
6452
+ declare function GetEquipmentInventoryIndexOfItemTypeBJ(whichUnit: unit, itemId: Rawcode<"item">): number;
6453
6453
 
6454
6454
  /**
6455
6455
  * @param whichUnit - unit
@@ -6465,7 +6465,7 @@ declare function GetEquipmentInventoryIndexOfEquipmentTypeBJ(whichUnit: unit, wh
6465
6465
  * @returns item
6466
6466
  * @see {@link https://lep.duckdns.org/jassbot/doc/GetItemEquippedByHeroOfTypeBJ}
6467
6467
  */
6468
- declare function GetItemEquippedByHeroOfTypeBJ(whichUnit: unit, itemId: number): item | undefined;
6468
+ declare function GetItemEquippedByHeroOfTypeBJ(whichUnit: unit, itemId: Rawcode<"item">): item | undefined;
6469
6469
 
6470
6470
  /**
6471
6471
  * @param whichUnit - unit
@@ -6481,7 +6481,7 @@ declare function GetItemEquippedByHeroOfEquipmentTypeBJ(whichUnit: unit, whichEq
6481
6481
  * @returns boolean
6482
6482
  * @see {@link https://lep.duckdns.org/jassbot/doc/UnitHasItemOfTypeEquippedBJ}
6483
6483
  */
6484
- declare function UnitHasItemOfTypeEquippedBJ(whichUnit: unit, itemId: number): boolean;
6484
+ declare function UnitHasItemOfTypeEquippedBJ(whichUnit: unit, itemId: Rawcode<"item">): boolean;
6485
6485
 
6486
6486
  /**
6487
6487
  * @param whichUnit - unit
@@ -6571,7 +6571,7 @@ declare function IsItemHiddenBJ(whichItem: item): boolean;
6571
6571
  * @returns integer (32-bit)
6572
6572
  * @see {@link https://lep.duckdns.org/jassbot/doc/ChooseRandomItemBJ}
6573
6573
  */
6574
- declare function ChooseRandomItemBJ(level: number): number;
6574
+ declare function ChooseRandomItemBJ(level: number): Rawcode<"item">;
6575
6575
 
6576
6576
  /**
6577
6577
  * @param level - integer (32-bit)
@@ -6579,7 +6579,7 @@ declare function ChooseRandomItemBJ(level: number): number;
6579
6579
  * @returns integer (32-bit)
6580
6580
  * @see {@link https://lep.duckdns.org/jassbot/doc/ChooseRandomItemExBJ}
6581
6581
  */
6582
- declare function ChooseRandomItemExBJ(level: number, whichType: itemtype): number;
6582
+ declare function ChooseRandomItemExBJ(level: number, whichType: itemtype): Rawcode<"item">;
6583
6583
 
6584
6584
  /**
6585
6585
  * @param level - integer (32-bit)
@@ -6589,20 +6589,20 @@ declare function ChooseRandomItemExBJ(level: number, whichType: itemtype): numbe
6589
6589
  * @returns integer (32-bit)
6590
6590
  * @see {@link https://lep.duckdns.org/jassbot/doc/ChooseRandomItemExWithFilterBJ}
6591
6591
  */
6592
- declare function ChooseRandomItemExWithFilterBJ(level: number, whichType: itemtype, whichEquipmentType: equipmentType, whichTag: itemTag): number;
6592
+ declare function ChooseRandomItemExWithFilterBJ(level: number, whichType: itemtype, whichEquipmentType: equipmentType, whichTag: itemTag): Rawcode<"item">;
6593
6593
 
6594
6594
  /**
6595
6595
  * @returns integer (32-bit)
6596
6596
  * @see {@link https://lep.duckdns.org/jassbot/doc/ChooseRandomNPBuildingBJ}
6597
6597
  */
6598
- declare function ChooseRandomNPBuildingBJ(): number;
6598
+ declare function ChooseRandomNPBuildingBJ(): Rawcode<"unit">;
6599
6599
 
6600
6600
  /**
6601
6601
  * @param level - integer (32-bit)
6602
6602
  * @returns integer (32-bit)
6603
6603
  * @see {@link https://lep.duckdns.org/jassbot/doc/ChooseRandomCreepBJ}
6604
6604
  */
6605
- declare function ChooseRandomCreepBJ(level: number): number;
6605
+ declare function ChooseRandomCreepBJ(level: number): Rawcode<"unit">;
6606
6606
 
6607
6607
  /**
6608
6608
  * @param r - rect
@@ -6647,28 +6647,28 @@ declare function CheckItemStatus(whichItem: item, status: number): boolean;
6647
6647
  * @returns boolean
6648
6648
  * @see {@link https://lep.duckdns.org/jassbot/doc/CheckItemcodeStatus}
6649
6649
  */
6650
- declare function CheckItemcodeStatus(itemId: number, status: number): boolean;
6650
+ declare function CheckItemcodeStatus(itemId: Rawcode<"item">, status: number): boolean;
6651
6651
 
6652
6652
  /**
6653
6653
  * @param unitId - integer (32-bit)
6654
6654
  * @returns integer (32-bit)
6655
6655
  * @see {@link https://lep.duckdns.org/jassbot/doc/UnitId2OrderIdBJ}
6656
6656
  */
6657
- declare function UnitId2OrderIdBJ(unitId: number): number;
6657
+ declare function UnitId2OrderIdBJ(unitId: Rawcode<"unit">): number;
6658
6658
 
6659
6659
  /**
6660
6660
  * @param unitIdString - string
6661
6661
  * @returns integer (32-bit)
6662
6662
  * @see {@link https://lep.duckdns.org/jassbot/doc/String2UnitIdBJ}
6663
6663
  */
6664
- declare function String2UnitIdBJ(unitIdString: string): number;
6664
+ declare function String2UnitIdBJ(unitIdString: string): Rawcode<"unit">;
6665
6665
 
6666
6666
  /**
6667
6667
  * @param unitId - integer (32-bit)
6668
6668
  * @returns string
6669
6669
  * @see {@link https://lep.duckdns.org/jassbot/doc/UnitId2StringBJ}
6670
6670
  */
6671
- declare function UnitId2StringBJ(unitId: number): string | undefined;
6671
+ declare function UnitId2StringBJ(unitId: Rawcode<"unit">): string | undefined;
6672
6672
 
6673
6673
  /**
6674
6674
  * @param orderIdString - string
@@ -6704,7 +6704,7 @@ declare function GetKillingUnitBJ(): unit | undefined;
6704
6704
  * @returns unit
6705
6705
  * @see {@link https://lep.duckdns.org/jassbot/doc/CreateUnitAtLocSaveLast}
6706
6706
  */
6707
- declare function CreateUnitAtLocSaveLast(id: player, unitid: number, loc: location, face: number): unit | undefined;
6707
+ declare function CreateUnitAtLocSaveLast(id: player, unitid: Rawcode<"unit">, loc: location, face: number): unit | undefined;
6708
6708
 
6709
6709
  /**
6710
6710
  * @returns unit
@@ -6721,7 +6721,7 @@ declare function GetLastCreatedUnit(): unit | undefined;
6721
6721
  * @returns group
6722
6722
  * @see {@link https://lep.duckdns.org/jassbot/doc/CreateNUnitsAtLoc}
6723
6723
  */
6724
- declare function CreateNUnitsAtLoc(count: number, unitId: number, whichPlayer: player, loc: location, face: number): group | undefined;
6724
+ declare function CreateNUnitsAtLoc(count: number, unitId: Rawcode<"unit">, whichPlayer: player, loc: location, face: number): group | undefined;
6725
6725
 
6726
6726
  /**
6727
6727
  * @param count - integer (32-bit)
@@ -6732,7 +6732,7 @@ declare function CreateNUnitsAtLoc(count: number, unitId: number, whichPlayer: p
6732
6732
  * @returns group
6733
6733
  * @see {@link https://lep.duckdns.org/jassbot/doc/CreateNUnitsAtLocFacingLocBJ}
6734
6734
  */
6735
- declare function CreateNUnitsAtLocFacingLocBJ(count: number, unitId: number, whichPlayer: player, loc: location, lookAt: location): group | undefined;
6735
+ declare function CreateNUnitsAtLocFacingLocBJ(count: number, unitId: Rawcode<"unit">, whichPlayer: player, loc: location, lookAt: location): group | undefined;
6736
6736
 
6737
6737
  /**
6738
6738
  * @returns nothing
@@ -6753,7 +6753,7 @@ declare function GetLastCreatedGroup(): group | undefined;
6753
6753
  * @returns unit
6754
6754
  * @see {@link https://lep.duckdns.org/jassbot/doc/CreateCorpseLocBJ}
6755
6755
  */
6756
- declare function CreateCorpseLocBJ(unitid: number, whichPlayer: player, loc: location): unit | undefined;
6756
+ declare function CreateCorpseLocBJ(unitid: Rawcode<"unit">, whichPlayer: player, loc: location): unit | undefined;
6757
6757
 
6758
6758
  /**
6759
6759
  * @param suspend - boolean
@@ -6802,7 +6802,7 @@ declare function DelayedSuspendDecayCreate(): void;
6802
6802
  * @returns unit
6803
6803
  * @see {@link https://lep.duckdns.org/jassbot/doc/CreatePermanentCorpseLocBJ}
6804
6804
  */
6805
- declare function CreatePermanentCorpseLocBJ(style: number, unitid: number, whichPlayer: player, loc: location, facing: number): unit | undefined;
6805
+ declare function CreatePermanentCorpseLocBJ(style: number, unitid: Rawcode<"unit">, whichPlayer: player, loc: location, facing: number): unit | undefined;
6806
6806
 
6807
6807
  /**
6808
6808
  * @param whichState - unitstate
@@ -7036,7 +7036,7 @@ declare function IssueHauntOrderAtLocBJ(whichPeon: unit, loc: location): boolean
7036
7036
  * @returns boolean
7037
7037
  * @see {@link https://lep.duckdns.org/jassbot/doc/IssueBuildOrderByIdLocBJ}
7038
7038
  */
7039
- declare function IssueBuildOrderByIdLocBJ(whichPeon: unit, unitId: number, loc: location): boolean;
7039
+ declare function IssueBuildOrderByIdLocBJ(whichPeon: unit, unitId: Rawcode<"unit">, loc: location): boolean;
7040
7040
 
7041
7041
  /**
7042
7042
  * @param whichUnit - unit
@@ -7044,7 +7044,7 @@ declare function IssueBuildOrderByIdLocBJ(whichPeon: unit, unitId: number, loc:
7044
7044
  * @returns boolean
7045
7045
  * @see {@link https://lep.duckdns.org/jassbot/doc/IssueTrainOrderByIdBJ}
7046
7046
  */
7047
- declare function IssueTrainOrderByIdBJ(whichUnit: unit, unitId: number): boolean;
7047
+ declare function IssueTrainOrderByIdBJ(whichUnit: unit, unitId: Rawcode<"unit">): boolean;
7048
7048
 
7049
7049
  /**
7050
7050
  * @param g - group
@@ -7052,7 +7052,7 @@ declare function IssueTrainOrderByIdBJ(whichUnit: unit, unitId: number): boolean
7052
7052
  * @returns boolean
7053
7053
  * @see {@link https://lep.duckdns.org/jassbot/doc/GroupTrainOrderByIdBJ}
7054
7054
  */
7055
- declare function GroupTrainOrderByIdBJ(g: group, unitId: number): boolean;
7055
+ declare function GroupTrainOrderByIdBJ(g: group, unitId: Rawcode<"unit">): boolean;
7056
7056
 
7057
7057
  /**
7058
7058
  * @param whichUnit - unit
@@ -7060,7 +7060,7 @@ declare function GroupTrainOrderByIdBJ(g: group, unitId: number): boolean;
7060
7060
  * @returns boolean
7061
7061
  * @see {@link https://lep.duckdns.org/jassbot/doc/IssueUpgradeOrderByIdBJ}
7062
7062
  */
7063
- declare function IssueUpgradeOrderByIdBJ(whichUnit: unit, techId: number): boolean;
7063
+ declare function IssueUpgradeOrderByIdBJ(whichUnit: unit, techId: Rawcode<"upgrade">): boolean;
7064
7064
 
7065
7065
  /**
7066
7066
  * @returns unit
@@ -7244,7 +7244,7 @@ declare function UnitPauseTimedLifeBJ(flag: boolean, whichUnit: unit): void;
7244
7244
  * @returns nothing
7245
7245
  * @see {@link https://lep.duckdns.org/jassbot/doc/UnitApplyTimedLifeBJ}
7246
7246
  */
7247
- declare function UnitApplyTimedLifeBJ(duration: number, buffId: number, whichUnit: unit): void;
7247
+ declare function UnitApplyTimedLifeBJ(duration: number, buffId: Rawcode<"buff">, whichUnit: unit): void;
7248
7248
 
7249
7249
  /**
7250
7250
  * @param share - boolean
@@ -7291,7 +7291,7 @@ declare function UnitCountBuffsExBJ(polarity: number, resist: number, whichUnit:
7291
7291
  * @returns boolean
7292
7292
  * @see {@link https://lep.duckdns.org/jassbot/doc/UnitRemoveAbilityBJ}
7293
7293
  */
7294
- declare function UnitRemoveAbilityBJ(abilityId: number, whichUnit: unit): boolean;
7294
+ declare function UnitRemoveAbilityBJ(abilityId: Rawcode<"ability">, whichUnit: unit): boolean;
7295
7295
 
7296
7296
  /**
7297
7297
  * @param abilityId - integer (32-bit)
@@ -7299,7 +7299,7 @@ declare function UnitRemoveAbilityBJ(abilityId: number, whichUnit: unit): boolea
7299
7299
  * @returns boolean
7300
7300
  * @see {@link https://lep.duckdns.org/jassbot/doc/UnitAddAbilityBJ}
7301
7301
  */
7302
- declare function UnitAddAbilityBJ(abilityId: number, whichUnit: unit): boolean;
7302
+ declare function UnitAddAbilityBJ(abilityId: Rawcode<"ability">, whichUnit: unit): boolean;
7303
7303
 
7304
7304
  /**
7305
7305
  * @param whichType - unittype
@@ -7324,7 +7324,7 @@ declare function UnitAddTypeBJ(whichType: unittype, whichUnit: unit): boolean;
7324
7324
  * @returns boolean
7325
7325
  * @see {@link https://lep.duckdns.org/jassbot/doc/UnitMakeAbilityPermanentBJ}
7326
7326
  */
7327
- declare function UnitMakeAbilityPermanentBJ(permanent: boolean, abilityId: number, whichUnit: unit): boolean;
7327
+ declare function UnitMakeAbilityPermanentBJ(permanent: boolean, abilityId: Rawcode<"ability">, whichUnit: unit): boolean;
7328
7328
 
7329
7329
  /**
7330
7330
  * @param whichUnit - unit
@@ -7382,7 +7382,7 @@ declare function IsUnitIllusionBJ(whichUnit: unit): boolean;
7382
7382
  * @returns unit
7383
7383
  * @see {@link https://lep.duckdns.org/jassbot/doc/ReplaceUnitBJ}
7384
7384
  */
7385
- declare function ReplaceUnitBJ(whichUnit: unit, newUnitId: number, unitStateMethod: number): unit | undefined;
7385
+ declare function ReplaceUnitBJ(whichUnit: unit, newUnitId: Rawcode<"unit">, unitStateMethod: number): unit | undefined;
7386
7386
 
7387
7387
  /**
7388
7388
  * @returns unit
@@ -7416,7 +7416,7 @@ declare function SetUnitPositionLocFacingLocBJ(whichUnit: unit, loc: location, l
7416
7416
  * @returns nothing
7417
7417
  * @see {@link https://lep.duckdns.org/jassbot/doc/AddItemToStockBJ}
7418
7418
  */
7419
- declare function AddItemToStockBJ(itemId: number, whichUnit: unit, currentStock: number, stockMax: number): void;
7419
+ declare function AddItemToStockBJ(itemId: Rawcode<"item">, whichUnit: unit, currentStock: number, stockMax: number): void;
7420
7420
 
7421
7421
  /**
7422
7422
  * @param unitId - integer (32-bit)
@@ -7426,7 +7426,7 @@ declare function AddItemToStockBJ(itemId: number, whichUnit: unit, currentStock:
7426
7426
  * @returns nothing
7427
7427
  * @see {@link https://lep.duckdns.org/jassbot/doc/AddUnitToStockBJ}
7428
7428
  */
7429
- declare function AddUnitToStockBJ(unitId: number, whichUnit: unit, currentStock: number, stockMax: number): void;
7429
+ declare function AddUnitToStockBJ(unitId: Rawcode<"unit">, whichUnit: unit, currentStock: number, stockMax: number): void;
7430
7430
 
7431
7431
  /**
7432
7432
  * @param itemId - integer (32-bit)
@@ -7434,7 +7434,7 @@ declare function AddUnitToStockBJ(unitId: number, whichUnit: unit, currentStock:
7434
7434
  * @returns nothing
7435
7435
  * @see {@link https://lep.duckdns.org/jassbot/doc/RemoveItemFromStockBJ}
7436
7436
  */
7437
- declare function RemoveItemFromStockBJ(itemId: number, whichUnit: unit): void;
7437
+ declare function RemoveItemFromStockBJ(itemId: Rawcode<"item">, whichUnit: unit): void;
7438
7438
 
7439
7439
  /**
7440
7440
  * @param unitId - integer (32-bit)
@@ -7442,7 +7442,7 @@ declare function RemoveItemFromStockBJ(itemId: number, whichUnit: unit): void;
7442
7442
  * @returns nothing
7443
7443
  * @see {@link https://lep.duckdns.org/jassbot/doc/RemoveUnitFromStockBJ}
7444
7444
  */
7445
- declare function RemoveUnitFromStockBJ(unitId: number, whichUnit: unit): void;
7445
+ declare function RemoveUnitFromStockBJ(unitId: Rawcode<"unit">, whichUnit: unit): void;
7446
7446
 
7447
7447
  /**
7448
7448
  * @param enable - boolean
@@ -7485,7 +7485,7 @@ declare function UnitDamageTargetBJ(whichUnit: unit, target: unit, amount: numbe
7485
7485
  * @returns destructable
7486
7486
  * @see {@link https://lep.duckdns.org/jassbot/doc/CreateDestructableLoc}
7487
7487
  */
7488
- declare function CreateDestructableLoc(objectid: number, loc: location, facing: number, scale: number, variation: number): destructable | undefined;
7488
+ declare function CreateDestructableLoc(objectid: Rawcode<"destructable">, loc: location, facing: number, scale: number, variation: number): destructable | undefined;
7489
7489
 
7490
7490
  /**
7491
7491
  * @param objectid - integer (32-bit)
@@ -7496,7 +7496,7 @@ declare function CreateDestructableLoc(objectid: number, loc: location, facing:
7496
7496
  * @returns destructable
7497
7497
  * @see {@link https://lep.duckdns.org/jassbot/doc/CreateDeadDestructableLocBJ}
7498
7498
  */
7499
- declare function CreateDeadDestructableLocBJ(objectid: number, loc: location, facing: number, scale: number, variation: number): destructable | undefined;
7499
+ declare function CreateDeadDestructableLocBJ(objectid: Rawcode<"destructable">, loc: location, facing: number, scale: number, variation: number): destructable | undefined;
7500
7500
 
7501
7501
  /**
7502
7502
  * @returns destructable
@@ -7902,7 +7902,7 @@ declare function GetUnitsOfTypeIdAllFilter(): boolean;
7902
7902
  * @returns group
7903
7903
  * @see {@link https://lep.duckdns.org/jassbot/doc/GetUnitsOfTypeIdAll}
7904
7904
  */
7905
- declare function GetUnitsOfTypeIdAll(unitid: number): group | undefined;
7905
+ declare function GetUnitsOfTypeIdAll(unitid: Rawcode<"unit">): group | undefined;
7906
7906
 
7907
7907
  /**
7908
7908
  * @param whichPlayer - player
@@ -7931,7 +7931,7 @@ declare function GetUnitsOfPlayerAndTypeIdFilter(): boolean;
7931
7931
  * @returns group
7932
7932
  * @see {@link https://lep.duckdns.org/jassbot/doc/GetUnitsOfPlayerAndTypeId}
7933
7933
  */
7934
- declare function GetUnitsOfPlayerAndTypeId(whichPlayer: player, unitid: number): group | undefined;
7934
+ declare function GetUnitsOfPlayerAndTypeId(whichPlayer: player, unitid: Rawcode<"unit">): group | undefined;
7935
7935
 
7936
7936
  /**
7937
7937
  * @param whichPlayer - player
@@ -8033,7 +8033,7 @@ declare function LivingPlayerUnitsOfTypeIdFilter(): boolean;
8033
8033
  * @returns integer (32-bit)
8034
8034
  * @see {@link https://lep.duckdns.org/jassbot/doc/CountLivingPlayerUnitsOfTypeId}
8035
8035
  */
8036
- declare function CountLivingPlayerUnitsOfTypeId(unitId: number, whichPlayer: player): number;
8036
+ declare function CountLivingPlayerUnitsOfTypeId(unitId: Rawcode<"unit">, whichPlayer: player): number;
8037
8037
 
8038
8038
  /**
8039
8039
  * @param whichUnit - unit
@@ -9356,7 +9356,7 @@ declare function TryInitCinematicBehaviorBJ(): void;
9356
9356
  * @returns nothing
9357
9357
  * @see {@link https://lep.duckdns.org/jassbot/doc/SetCinematicSceneBJ}
9358
9358
  */
9359
- declare function SetCinematicSceneBJ(soundHandle: sound, portraitUnitId: number, color: playercolor, speakerTitle: string, text: string, sceneDuration: number, voiceoverDuration: number): void;
9359
+ declare function SetCinematicSceneBJ(soundHandle: sound, portraitUnitId: Rawcode<"unit">, color: playercolor, speakerTitle: string, text: string, sceneDuration: number, voiceoverDuration: number): void;
9360
9360
 
9361
9361
  /**
9362
9362
  * @param soundHandle - sound
@@ -9388,7 +9388,7 @@ declare function WaitTransmissionDuration(soundHandle: sound, timeType: number,
9388
9388
  * @returns nothing
9389
9389
  * @see {@link https://lep.duckdns.org/jassbot/doc/DoTransmissionBasicsXYBJ}
9390
9390
  */
9391
- declare function DoTransmissionBasicsXYBJ(unitId: number, color: playercolor, x: number, y: number, soundHandle: sound, unitName: string, message: string, duration: number): void;
9391
+ declare function DoTransmissionBasicsXYBJ(unitId: Rawcode<"unit">, color: playercolor, x: number, y: number, soundHandle: sound, unitName: string, message: string, duration: number): void;
9392
9392
 
9393
9393
  /**
9394
9394
  * @param toForce - force
@@ -9415,7 +9415,7 @@ declare function TransmissionFromUnitWithNameBJ(toForce: force, whichUnit: unit,
9415
9415
  * @returns boolean
9416
9416
  * @see {@link https://lep.duckdns.org/jassbot/doc/PlayDialogueFromSpeakerEx}
9417
9417
  */
9418
- declare function PlayDialogueFromSpeakerEx(toForce: force, speaker: unit, speakerType: number, soundHandle: sound, timeType: number, timeVal: number, wait: boolean): boolean;
9418
+ declare function PlayDialogueFromSpeakerEx(toForce: force, speaker: unit, speakerType: Rawcode<"unit">, soundHandle: sound, timeType: number, timeVal: number, wait: boolean): boolean;
9419
9419
 
9420
9420
  /**
9421
9421
  * @param toForce - force
@@ -9429,7 +9429,7 @@ declare function PlayDialogueFromSpeakerEx(toForce: force, speaker: unit, speake
9429
9429
  * @returns boolean
9430
9430
  * @see {@link https://lep.duckdns.org/jassbot/doc/PlayDialogueFromSpeakerTypeEx}
9431
9431
  */
9432
- declare function PlayDialogueFromSpeakerTypeEx(toForce: force, fromPlayer: player, speakerType: number, loc: location, soundHandle: sound, timeType: number, timeVal: number, wait: boolean): boolean;
9432
+ declare function PlayDialogueFromSpeakerTypeEx(toForce: force, fromPlayer: player, speakerType: Rawcode<"unit">, loc: location, soundHandle: sound, timeType: number, timeVal: number, wait: boolean): boolean;
9433
9433
 
9434
9434
  /**
9435
9435
  * @param toForce - force
@@ -9445,7 +9445,7 @@ declare function PlayDialogueFromSpeakerTypeEx(toForce: force, fromPlayer: playe
9445
9445
  * @returns nothing
9446
9446
  * @see {@link https://lep.duckdns.org/jassbot/doc/TransmissionFromUnitTypeWithNameBJ}
9447
9447
  */
9448
- declare function TransmissionFromUnitTypeWithNameBJ(toForce: force, fromPlayer: player, unitId: number, unitName: string, loc: location, soundHandle: sound, message: string, timeType: number, timeVal: number, wait: boolean): void;
9448
+ declare function TransmissionFromUnitTypeWithNameBJ(toForce: force, fromPlayer: player, unitId: Rawcode<"unit">, unitName: string, loc: location, soundHandle: sound, message: string, timeType: number, timeVal: number, wait: boolean): void;
9449
9449
 
9450
9450
  /**
9451
9451
  * @returns real
@@ -9636,7 +9636,7 @@ declare function InitRescuableBehaviorBJ(): void;
9636
9636
  * @returns nothing
9637
9637
  * @see {@link https://lep.duckdns.org/jassbot/doc/SetPlayerTechResearchedSwap}
9638
9638
  */
9639
- declare function SetPlayerTechResearchedSwap(techid: number, levels: number, whichPlayer: player): void;
9639
+ declare function SetPlayerTechResearchedSwap(techid: Rawcode<"unit" | "upgrade">, levels: number, whichPlayer: player): void;
9640
9640
 
9641
9641
  /**
9642
9642
  * @param techid - integer (32-bit)
@@ -9645,7 +9645,7 @@ declare function SetPlayerTechResearchedSwap(techid: number, levels: number, whi
9645
9645
  * @returns nothing
9646
9646
  * @see {@link https://lep.duckdns.org/jassbot/doc/SetPlayerTechMaxAllowedSwap}
9647
9647
  */
9648
- declare function SetPlayerTechMaxAllowedSwap(techid: number, maximum: number, whichPlayer: player): void;
9648
+ declare function SetPlayerTechMaxAllowedSwap(techid: Rawcode<"unit" | "upgrade">, maximum: number, whichPlayer: player): void;
9649
9649
 
9650
9650
  /**
9651
9651
  * @param maximum - integer (32-bit)
@@ -9661,7 +9661,7 @@ declare function SetPlayerMaxHeroesAllowed(maximum: number, whichPlayer: player)
9661
9661
  * @returns integer (32-bit)
9662
9662
  * @see {@link https://lep.duckdns.org/jassbot/doc/GetPlayerTechCountSimple}
9663
9663
  */
9664
- declare function GetPlayerTechCountSimple(techid: number, whichPlayer: player): number;
9664
+ declare function GetPlayerTechCountSimple(techid: Rawcode<"unit" | "upgrade">, whichPlayer: player): number;
9665
9665
 
9666
9666
  /**
9667
9667
  * @param techid - integer (32-bit)
@@ -9669,7 +9669,7 @@ declare function GetPlayerTechCountSimple(techid: number, whichPlayer: player):
9669
9669
  * @returns integer (32-bit)
9670
9670
  * @see {@link https://lep.duckdns.org/jassbot/doc/GetPlayerTechMaxAllowedSwap}
9671
9671
  */
9672
- declare function GetPlayerTechMaxAllowedSwap(techid: number, whichPlayer: player): number;
9672
+ declare function GetPlayerTechMaxAllowedSwap(techid: Rawcode<"unit" | "upgrade">, whichPlayer: player): number;
9673
9673
 
9674
9674
  /**
9675
9675
  * @param avail - boolean
@@ -9678,7 +9678,7 @@ declare function GetPlayerTechMaxAllowedSwap(techid: number, whichPlayer: player
9678
9678
  * @returns nothing
9679
9679
  * @see {@link https://lep.duckdns.org/jassbot/doc/SetPlayerAbilityAvailableBJ}
9680
9680
  */
9681
- declare function SetPlayerAbilityAvailableBJ(avail: boolean, abilid: number, whichPlayer: player): void;
9681
+ declare function SetPlayerAbilityAvailableBJ(avail: boolean, abilid: Rawcode<"ability">, whichPlayer: player): void;
9682
9682
 
9683
9683
  /**
9684
9684
  * @param campaignNumber - integer (32-bit)
@@ -10989,7 +10989,7 @@ declare function SetPlayerColorBJ(whichPlayer: player, color: playercolor, chang
10989
10989
  * @returns nothing
10990
10990
  * @see {@link https://lep.duckdns.org/jassbot/doc/SetPlayerUnitAvailableBJ}
10991
10991
  */
10992
- declare function SetPlayerUnitAvailableBJ(unitId: number, allowed: boolean, whichPlayer: player): void;
10992
+ declare function SetPlayerUnitAvailableBJ(unitId: Rawcode<"unit">, allowed: boolean, whichPlayer: player): void;
10993
10993
 
10994
10994
  /**
10995
10995
  * @returns nothing
@@ -11151,7 +11151,7 @@ declare function SetBlightRadiusLocBJ(addBlight: boolean, whichPlayer: player, l
11151
11151
  * @returns string
11152
11152
  * @see {@link https://lep.duckdns.org/jassbot/doc/GetAbilityName}
11153
11153
  */
11154
- declare function GetAbilityName(abilcode: number): string | undefined;
11154
+ declare function GetAbilityName(abilcode: Rawcode<"ability">): string | undefined;
11155
11155
 
11156
11156
  /**
11157
11157
  * @returns nothing
@@ -11172,7 +11172,7 @@ declare function MeleeStartingResources(): void;
11172
11172
  * @returns nothing
11173
11173
  * @see {@link https://lep.duckdns.org/jassbot/doc/ReducePlayerTechMaxAllowed}
11174
11174
  */
11175
- declare function ReducePlayerTechMaxAllowed(whichPlayer: player, techId: number, limit: number): void;
11175
+ declare function ReducePlayerTechMaxAllowed(whichPlayer: player, techId: Rawcode<"unit" | "upgrade">, limit: number): void;
11176
11176
 
11177
11177
  /**
11178
11178
  * @returns nothing
@@ -11256,7 +11256,7 @@ declare function MeleeFindNearestMine(src: location, range: number): unit | unde
11256
11256
  * @returns unit
11257
11257
  * @see {@link https://lep.duckdns.org/jassbot/doc/MeleeRandomHeroLoc}
11258
11258
  */
11259
- declare function MeleeRandomHeroLoc(p: player, id1: number, id2: number, id3: number, id4: number, loc: location): unit | undefined;
11259
+ declare function MeleeRandomHeroLoc(p: player, id1: Rawcode<"unit">, id2: Rawcode<"unit">, id3: Rawcode<"unit">, id4: Rawcode<"unit">, loc: location): unit | undefined;
11260
11260
 
11261
11261
  /**
11262
11262
  * @param src - location
@@ -11768,13 +11768,13 @@ declare function RandomDistReset(): void;
11768
11768
  * @returns nothing
11769
11769
  * @see {@link https://lep.duckdns.org/jassbot/doc/RandomDistAddItem}
11770
11770
  */
11771
- declare function RandomDistAddItem(inID: number, inChance: number): void;
11771
+ declare function RandomDistAddItem(inID: Rawcode, inChance: number): void;
11772
11772
 
11773
11773
  /**
11774
11774
  * @returns integer (32-bit)
11775
11775
  * @see {@link https://lep.duckdns.org/jassbot/doc/RandomDistChoose}
11776
11776
  */
11777
- declare function RandomDistChoose(): number;
11777
+ declare function RandomDistChoose(): Rawcode;
11778
11778
 
11779
11779
  /**
11780
11780
  * @param inUnit - unit
@@ -11782,7 +11782,7 @@ declare function RandomDistChoose(): number;
11782
11782
  * @returns item
11783
11783
  * @see {@link https://lep.duckdns.org/jassbot/doc/UnitDropItem}
11784
11784
  */
11785
- declare function UnitDropItem(inUnit: unit, inItemID: number): item | undefined;
11785
+ declare function UnitDropItem(inUnit: unit, inItemID: Rawcode<"item">): item | undefined;
11786
11786
 
11787
11787
  /**
11788
11788
  * @param inWidget - widget
@@ -11790,7 +11790,7 @@ declare function UnitDropItem(inUnit: unit, inItemID: number): item | undefined;
11790
11790
  * @returns item
11791
11791
  * @see {@link https://lep.duckdns.org/jassbot/doc/WidgetDropItem}
11792
11792
  */
11793
- declare function WidgetDropItem(inWidget: widget, inItemID: number): item | undefined;
11793
+ declare function WidgetDropItem(inWidget: widget, inItemID: Rawcode<"item">): item | undefined;
11794
11794
 
11795
11795
  /**
11796
11796
  * @returns boolean
@@ -12004,7 +12004,7 @@ declare function BlzRemoveAbilityStringLevelArrayFieldBJ(whichAbility: ability,
12004
12004
  * @returns nothing
12005
12005
  * @see {@link https://lep.duckdns.org/jassbot/doc/BlzItemAddAbilityBJ}
12006
12006
  */
12007
- declare function BlzItemAddAbilityBJ(whichItem: item, abilCode: number): void;
12007
+ declare function BlzItemAddAbilityBJ(whichItem: item, abilCode: Rawcode<"ability">): void;
12008
12008
 
12009
12009
  /**
12010
12010
  * @param whichItem - item
@@ -12012,7 +12012,7 @@ declare function BlzItemAddAbilityBJ(whichItem: item, abilCode: number): void;
12012
12012
  * @returns nothing
12013
12013
  * @see {@link https://lep.duckdns.org/jassbot/doc/BlzItemRemoveAbilityBJ}
12014
12014
  */
12015
- declare function BlzItemRemoveAbilityBJ(whichItem: item, abilCode: number): void;
12015
+ declare function BlzItemRemoveAbilityBJ(whichItem: item, abilCode: Rawcode<"ability">): void;
12016
12016
 
12017
12017
  /**
12018
12018
  * @param whichItem - item