Jump to content

Immediate built items


Acid81

Recommended Posts

What determines if items a built immediately.

 

I was playing around with the Skelton Key, wanted to change a few things. The way its already set in game as you can see here from hex it should take 7 days to build but displays in game as immediate build time.

1B 26 05 00 00 00 00 00 00 -
2C B8 2C 19 2C 14 2C 14 4A 2C 07 2C 0F 24 03 4A 4A 2C 3A 16

BuildItem(184, 25, 20, 20, 7, 15, 3, 58)

My question is why ?

Link to comment
Share on other sites

See the function GetItemBuildTime@XGItemTree ... it forces build time to zero for many classes of item. This is function in Long War we use to disable that feature and make all items regard the defaultgamecore.ini iTime value.

MODFILEVERSION=4
UPKFILE=XComStrategyGame.upk
GUID=BB 93 C6 C8 D2 91 82 44 87 9B 79 9B 49 5B 8D E9 // XComStrategyGame EW Patch 3.upk
FUNCTION=GetItemBuildTime@XGItemTree
//KEYWORD=Force build times for all weapons per DGC.ini settings

[BEFORE_HEX]
[CODE]
if((eItemCat != 3) || IsShipWeapon(eItem))
07 4E 00 84 9B 38 3A 00 1A 43 00 00 38 3A 24 03 16 18 16 00 1B 6B 18 00 00 00 00 00 00 38 3A 00 1B 43 00 00 16 16 
to
[/CODE]
[/BEFORE_HEX]

[AFTER_HEX]
[CODE]
if((eItemCat != 3) && IsShipWeapon(eItem))
07 4E 00 82 9B 38 3A 00 1A 43 00 00 38 3A 24 03 16 18 16 00 1B 6B 18 00 00 00 00 00 00 38 3A 00 1B 43 00 00 16 16 
[/CODE]
[/AFTER_HEX]
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...