diff options
| author | jj | 2012-09-19 19:19:58 +0200 |
|---|---|---|
| committer | jj | 2012-09-19 19:19:58 +0200 |
| commit | b6d986317239b7eac27511d488d3954e924178d3 (patch) | |
| tree | d6acaab9412e1d5f7166bcc1b9e0895342dc4c9a /plugins/ruby | |
| parent | 27fd3f5fc7148981948925a20658db8b62c21761 (diff) | |
| download | dfhack-b6d986317239b7eac27511d488d3954e924178d3.tar.gz dfhack-b6d986317239b7eac27511d488d3954e924178d3.tar.bz2 dfhack-b6d986317239b7eac27511d488d3954e924178d3.tar.xz | |
ruby: allow Civzone constants in building_alloc
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 d88bbfc6..0a48386c 100644 --- a/plugins/ruby/building.rb +++ b/plugins/ruby/building.rb @@ -48,6 +48,7 @@ module DFHack 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 + subtype = CivzoneType.int(subtype) if subtype.kind_of?(::Symbol) and type == :Civzone bld.setSubtype(subtype) bld.setCustomType(custom) case type |
