diff options
| author | Alexander Gavrilov | 2012-09-27 10:36:14 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-09-27 10:36:14 +0400 |
| commit | 2e5f3c46201d8450a39b52117dbd4f1544771189 (patch) | |
| tree | 1215abb52b93463c894b459462bb30cf36be8c81 /plugins/ruby/building.rb | |
| parent | ac9e78a6130d896510f186cc8f8ed5046cac45be (diff) | |
| parent | 7cc29250f8622a317da464a2b7356a246082abc0 (diff) | |
| download | dfhack-2e5f3c46201d8450a39b52117dbd4f1544771189.tar.gz dfhack-2e5f3c46201d8450a39b52117dbd4f1544771189.tar.bz2 dfhack-2e5f3c46201d8450a39b52117dbd4f1544771189.tar.xz | |
Merge remote-tracking branch 'jjyg/master'
Diffstat (limited to 'plugins/ruby/building.rb')
| -rw-r--r-- | plugins/ruby/building.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/ruby/building.rb b/plugins/ruby/building.rb index 3f8842b4..59f71551 100644 --- a/plugins/ruby/building.rb +++ b/plugins/ruby/building.rb @@ -51,12 +51,14 @@ module DFHack 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 + subtype = TrapType.int(subtype) if subtype.kind_of?(::Symbol) and type == :Trap bld.setSubtype(subtype) bld.setCustomType(custom) case type when :Furnace; bld.melt_remainder[world.raws.inorganics.length] = 0 when :Coffin; bld.initBurialFlags when :Trap; bld.unk_cc = 500 if bld.trap_type == :PressurePlate + when :Floodgate; bld.gate_flags.closed = true end bld end |
