diff options
| author | jj | 2012-09-05 19:18:21 +0200 |
|---|---|---|
| committer | jj | 2012-09-05 19:18:21 +0200 |
| commit | afbace8af67d4a2a7b901728da8f9116f93d26d0 (patch) | |
| tree | 448d820bffc1480eb00627453057ce7f96c704a1 /plugins/ruby | |
| parent | a4c028b3b7c3ff709ece1b23d8641de6703fdb07 (diff) | |
| download | dfhack-afbace8af67d4a2a7b901728da8f9116f93d26d0.tar.gz dfhack-afbace8af67d4a2a7b901728da8f9116f93d26d0.tar.bz2 dfhack-afbace8af67d4a2a7b901728da8f9116f93d26d0.tar.xz | |
ruby: alloc_building(:Furnace, :Smelter)
Diffstat (limited to 'plugins/ruby')
| -rw-r--r-- | plugins/ruby/building.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/ruby/building.rb b/plugins/ruby/building.rb index 398301b7..e6760567 100644 --- a/plugins/ruby/building.rb +++ b/plugins/ruby/building.rb @@ -47,6 +47,7 @@ module DFHack bld = cls.cpp_new bld.race = ui.race_id 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.setCustomType(custom) if custom != -1 case type |
