ruby: alloc_building(:Furnace, :Smelter)

develop
jj 2012-09-05 19:18:21 +02:00
parent a4c028b3b7
commit afbace8af6
1 changed files with 1 additions and 0 deletions

@ -47,6 +47,7 @@ module DFHack
bld = cls.cpp_new bld = cls.cpp_new
bld.race = ui.race_id bld.race = ui.race_id
subtype = WorkshopType.int(subtype) if subtype.kind_of?(::Symbol) and type == :Workshop subtype = WorkshopType.int(subtype) if subtype.kind_of?(::Symbol) and type == :Workshop
subtype = FurnaceType.int(subtype) if subtype.kind_of?(::Symbol) and type == :Furnace
bld.setSubtype(subtype) if subtype != -1 bld.setSubtype(subtype) if subtype != -1
bld.setCustomType(custom) if custom != -1 bld.setCustomType(custom) if custom != -1
case type case type