| 20093 | } |
| 20094 | |
| 20095 | int countCustomItems(Stat* stats) |
| 20096 | { |
| 20097 | int x = 0; |
| 20098 | int customItemSlotCount = 0; |
| 20099 | |
| 20100 | for ( x = ITEM_SLOT_INV_1; x <= ITEM_SLOT_INV_6; x = x + ITEM_SLOT_NUMPROPERTIES ) |
| 20101 | { |
| 20102 | if ( stats->EDITOR_ITEMS[x] != 1 || (stats->EDITOR_ITEMS[x] == 1 && stats->EDITOR_ITEMS[x + ITEM_SLOT_CATEGORY] != 0) ) |
| 20103 | { |
| 20104 | ++customItemSlotCount; //found a custom item in inventory |
| 20105 | } |
| 20106 | } |
| 20107 | |
| 20108 | return customItemSlotCount; //use custom items from editor instead of default generation |
| 20109 | } |
| 20110 | |
| 20111 | int countDefaultItems(Stat* stats) |
| 20112 | { |
no outgoing calls
no test coverage detected