Add V2 file format

This commit is contained in:
Andrew Miner
2015-01-14 15:19:02 -08:00
parent c417a24653
commit 89a8e2b539
16 changed files with 869 additions and 70 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ modVersion = parser = null
########################################################################################################################
describe "V1", ->
describe "ModParserVersion.V1", ->
beforeEach ->
parser = new V1
@@ -69,7 +69,7 @@ describe "V1", ->
modVersion.items['wool'].isGatherable.should.be.true
it 'marks an existing item as gatherable', ->
modVersion.addItem new Item name:'Wool'
item = new Item modVersion:modVersion, name:'Wool'
modVersion.items['wool'].isGatherable.should.be.false
parser._parseRawMaterials ['Wool']
modVersion.items['wool'].isGatherable.should.be.true