mirror of
https://gitlab.com/hashborgir/d2tweaks-rnd2k.git
synced 2025-10-13 16:34:22 -05:00
Everything ini configurable
This commit is contained in:
@@ -1044,5 +1044,11 @@ namespace diablo2 {
|
||||
// Write a function signature for this function
|
||||
static structures::D2ItemStatCostTxt* get_item_stat_cost_record(int nStatId);
|
||||
|
||||
//D2Common.0x6FD57720 (#10602)
|
||||
//int __stdcall DATATBLS_GetItemIdFromItemCode(uint32_t dwCode)
|
||||
static int get_item_id_from_item_code(uint32_t dwCode);
|
||||
|
||||
|
||||
|
||||
};
|
||||
}
|
||||
|
@@ -47,5 +47,8 @@ namespace diablo2 {
|
||||
|
||||
static void update_inventory_items(structures::game* game, structures::unit* player);
|
||||
static uint32_t __fastcall diablo2::d2_game::transmogrify(diablo2::structures::game* game, diablo2::structures::unit* player);
|
||||
|
||||
//D2Game.0x6FC4ED80
|
||||
structures::unit* __fastcall D2GAME_CreateItemEx_6FC4ED80(structures::game* pGame, structures::D2ItemDropStrc* pItemDrop, int32_t a3);
|
||||
};
|
||||
}
|
||||
|
@@ -1,6 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include "room.h"
|
||||
#include <windows.h>
|
||||
|
||||
#pragma pack(push, 1)
|
||||
|
||||
@@ -74,6 +76,50 @@ namespace diablo2 {
|
||||
ITEMFLAG_ITEM = 0x08000000
|
||||
};
|
||||
|
||||
struct D2SeedStrc
|
||||
{
|
||||
union
|
||||
{
|
||||
struct
|
||||
{
|
||||
uint32_t nLowSeed; //0x00
|
||||
uint32_t nHighSeed; //0x04
|
||||
};
|
||||
uint64_t lSeed; //0x00
|
||||
};
|
||||
};
|
||||
|
||||
struct D2ItemDropStrc
|
||||
{
|
||||
diablo2::structures::unit* pUnit; //0x00
|
||||
D2SeedStrc* pSeed; //0x04
|
||||
diablo2::structures::game* pGame; //0x08
|
||||
int32_t nItemLvl; //0x0C
|
||||
uint32_t unk0x10; //0x10
|
||||
int32_t nId; //0x14
|
||||
int32_t nSpawnType; //0x18 [3 for ground spawn, 4 for inv spawn]
|
||||
int32_t nX; //0x1C
|
||||
int32_t nY; //0x20
|
||||
diablo2::structures::room* pRoom; //0x24
|
||||
uint16_t wUnitInitFlags; //0x28
|
||||
uint16_t wItemFormat; //0x2A [ptGame0x0x78]
|
||||
BOOL bForce; //0x2C
|
||||
int32_t nQuality; //0x30
|
||||
int32_t nQuantity; //0x34
|
||||
int32_t nMinDur; //0x38
|
||||
int32_t nMaxDur; //0x3C
|
||||
int32_t nItemIndex; //0x40
|
||||
uint32_t dwFlags1; //0x44 - itemflag override (used when force is true)
|
||||
uint32_t dwSeed; //0x48 - overrides the seed, used when force is true
|
||||
uint32_t dwItemSeed; //0x4C - overrides the item seed when force is true
|
||||
int32_t eEarLvl; //0x50
|
||||
int32_t nQtyOverride; //0x54
|
||||
char szName[16]; //0x58
|
||||
int32_t nPrefix[3]; //0x68
|
||||
int32_t nSuffix[3]; //0x74
|
||||
uint32_t dwFlags2; //0x80
|
||||
};
|
||||
|
||||
struct unit {
|
||||
unit_type_t type;
|
||||
|
||||
|
Reference in New Issue
Block a user