From: Erik V. <eri...@xs...> - 2011-07-06 13:17:10
|
I have started with implementing my plan to refactor phase management. It's my intention that the old and new ways to configure phases will keep existing in parallel for a while, so that I can use 18TN as a guinea pig without affecting other games. Not sure if that's going to work, but we'll see. Phase actions have not been done yet, so the only effect is that the 18TN game status will now show Phase 3½ and 6½ where applicable. The 4-train obsolescence still works the old way. (I found to my surprise that obsolescence was still configured for the 2- and 3-trains as well. I have removed that now). Game.xml now has <TrainType name="3" majorStops="3" cost="180" quantity="5"> <NewPhase phaseName="3"/> <!-- trainIndex defaults to "1"--> <NewPhase phaseName="3½" trainIndex="4"/> </TrainType> and <TrainType name="6" majorStops="6" cost="630" quantity="2" rustedTrain="3"> <NewPhase phaseName="6"/> <NewPhase phaseName="6½" trainIndex="2"/> <Sub index="2" rustedTrain="4"/> </TrainType> The "rustedTrain" attributes and the <Sub> tag will be removed as further implementation proceeds. Erik. |