ok, this is fixed now as well. As an example for this and NumSitReps, the python codeCjkjvfnby wrote:And other issue with hullType.slots
Code: Select all
print "Number of SitReps this turn: ", empire.numSitReps(fo.currentTurn())
print "Total number of SitReps so far: ", empire.numSitReps(fo.INVALID_GAME_TURN)
testHull = fo.getHullType("SH_STANDARD")
slot_types = fo.shipSlotType
print "Test hull %s; total slots: %d, slots by type: %s" % (testHull.name, testHull.numSlots, [testHull.numSlotsOfSlotType(s_type) for s_type in [slot_types.external, slot_types.internal, slot_types.core]])
slot_vec = testHull.slots
print "TestHull slots vector: %s, contains %s" % ( slot_vec, [slot_type for slot_type in slot_vec])
Code: Select all
2015-01-22 17:37:37,598 DEBUG AI : Number of SitReps this turn: 2
2015-01-22 17:37:37,598 DEBUG AI : Total number of SitReps so far: 24
2015-01-22 17:37:37,598 DEBUG AI : Test hull SH_STANDARD; total slots: 4, slots by type: [3, 1, 0]
2015-01-22 17:37:37,598 DEBUG AI : TestHull slots vector: <freeOrionAIInterface.ShipSlotVec object at 0x7f05e2745750>, contains
[freeOrionAIInterface.shipSlotType.external, freeOrionAIInterface.shipSlotType.external, freeOrionAIInterface.shipSlotType.external,
freeOrionAIInterface.shipSlotType.internal]