eventually magic would win this war , but for now technology was putting up a hell of a fight , and we were stuck in the middle of the chaos , struggling to rebuild a half-ruined world according to new rules .