mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
- New Externalization: Item size and weapon limits (by JMich)
o 3 new ja2_options.ini properties: MAX_ITEM_SIZE, MAX_WEAPON_SIZE, OLD_INVENTORY_ITEM_NUMBER o see here: http://www.ja-galaxy-forum.com/board/ubbthreads.php?ubb=showflat&Number=276115&page=1 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@4907 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -46,6 +46,8 @@
|
||||
#define OLD_IMP_FILENAME_SUFFIX ".dat"
|
||||
#define NEW_IMP_FILENAME_SUFFIX ".dat2"
|
||||
|
||||
|
||||
|
||||
//CHRISL: structure needed to store temporary inventory information during IMP creation
|
||||
typedef struct
|
||||
{
|
||||
@@ -479,7 +481,7 @@ void DistributeInitialGear(MERCPROFILESTRUCT *pProfile)
|
||||
{
|
||||
if((UsingNewInventorySystem() == true))
|
||||
{
|
||||
if(Item[pProfile->inv[i]].ItemSize != 99)
|
||||
if(Item[pProfile->inv[i]].ItemSize != gGameExternalOptions.guiOIVSizeNumber) //JMich
|
||||
{
|
||||
tInv[count].inv = pProfile->inv[i];
|
||||
tInv[count].iSize = Item[pProfile->inv[i]].ItemSize;
|
||||
@@ -511,7 +513,7 @@ void DistributeInitialGear(MERCPROFILESTRUCT *pProfile)
|
||||
length = count;
|
||||
count = 0;
|
||||
// Next sort list by size
|
||||
for(j=34; j>=0; j--)
|
||||
for(j=gGameExternalOptions.guiMaxItemSize; j>=0; j--) //JMich
|
||||
{
|
||||
for(i=0; i<length; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user