Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
peterix committed Feb 14, 2012
2 parents 03a791f + d5eab44 commit 6696efc
Show file tree
Hide file tree
Showing 5 changed files with 2,673 additions and 10 deletions.
34 changes: 32 additions & 2 deletions df.map.xml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
<int32_t ref-target='item'/>
</stl-vector>
<stl-vector name='effects'>
<pointer/>
<pointer type-name='effect'/>
</stl-vector>

<int32_t name='unk7'/>
Expand All @@ -165,7 +165,7 @@

<static-array name='tiletype' count='16'>
<static-array count='16'>
<int16_t/>
<enum base-type='int16_t' type-name='tiletype'/>
</static-array>
</static-array>
<static-array name='designation' count='16'>
Expand Down Expand Up @@ -589,6 +589,36 @@
<int16_t name='original_tile'/>
</struct-type>

<enum-type type-name='effect_type' base-type='int16_t'>
<enum-item name='Miasma'/>
<enum-item name='Steam' comment='only if mat_type=1'/>
<enum-item name='Mist'/>
<enum-item name='MaterialDust'/>
<enum-item name='MagmaMist'/>
<enum-item name='Smoke'/>
<enum-item name='Dragonfire'/>
<enum-item name='Fire'/>
<enum-item name='Web'/>
<enum-item name='MaterialGas'/>
<enum-item name='MaterialVapor'/>
<enum-item name='OceanWave'/>
<enum-item name='SeaFoam'/>
</enum-type>

<struct-type type-name='effect'>
<enum type-name='effect_type' base-type='int16_t' name='type'/>
<int16_t name='mat_type' ref-target='material' aux-value='$$.mat_index'/>
<int32_t name='mat_index'/>
<int16_t name='density'/>
<int16_t name='x'/>
<int16_t name='y'/>
<int16_t name='z'/>
<int16_t/>
<int16_t/>
<int16_t/>
<int16_t/>
<int32_t/>
</struct-type>
</data-definition>

<!--
Expand Down
2 changes: 1 addition & 1 deletion df.materials.xml
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@
<int16_t name='temp_diet_info'/>

<stl-vector name='syndrome'>
<pointer/>
<pointer type-name='syndrome'/>
</stl-vector>

<int32_t name='soap_level'/>
Expand Down
170 changes: 170 additions & 0 deletions df.syndrome.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
<data-definition>
<enum-type type-name='creature_interaction_effect_type'>
<enum-item name='PAIN'/>
<enum-item name='SWELLING'/>
<enum-item name='OOZING'/>
<enum-item name='BRUISING'/>
<enum-item name='BLISTERS'/>
<enum-item name='NUMBNESS'/>
<enum-item name='PARALYSIS'/>
<enum-item name='FEVER'/>
<enum-item name='BLEEDING'/>
<enum-item name='COUGH_BLOOD'/>
<enum-item name='VOMIT_BLOOD'/>
<enum-item name='NAUSEA'/>
<enum-item name='UNCONSCIOUSNESS'/>
<enum-item name='NECROSIS'/>
<enum-item name='IMPAIR_FUNCTION'/>
<enum-item name='DROWSINESS'/>
<enum-item name='DIZZINESS'/>
</enum-type>

<bitfield-type type-name='creature_interaction_effect_flags' base-type='uint32_t'>
<flag-bit name='SIZE_DELAYS'/>
<flag-bit name='SIZE_DILUTES'/>
<flag-bit name='VASCULAR_ONLY'/>
<flag-bit name='MUSCULAR_ONLY'/>
<flag-bit name='RESISTABLE'/>
<flag-bit name='LOCALIZED'/>
</bitfield-type>

<struct-type type-name='creature_interaction_effect_target'>
<stl-vector type-name='int16_t'/>
<stl-vector>
<pointer type-name='stl-string'/>
</stl-vector>
<stl-vector>
<pointer type-name='stl-string'/>
</stl-vector>
</struct-type>

<class-type type-name='creature_interaction_effect' original-name='creature_interaction_effectst'>
<compound name='flags' type-name='creature_interaction_effect_flags'/>
<int32_t name='prob'/>
<int32_t name='start'/>
<int32_t name='peak'/>
<int32_t name='end'/>
<int32_t name='sev'/>

<virtual-methods>
<vmethod ret-type='creature_interaction_effect_type' name='getType'/>
<vmethod name='clone'>
<ret-type><pointer type-name='creature_interaction_effect'/></ret-type>
</vmethod>
<vmethod is-destructor='true'/>
<vmethod>
<pointer/>
<pointer/>
<int32_t/>
<int32_t/>
<int16_t/>
<int16_t/>
<int32_t/>
</vmethod>
<vmethod ret-type='bool'/>
<vmethod name='getVector1'>
<ret-type><pointer><stl-vector/></pointer></ret-type>
</vmethod>
<vmethod name='getVector2'>
<ret-type><pointer><stl-vector/></pointer></ret-type>
</vmethod>
<vmethod name='getVector3'>
<ret-type><pointer><stl-vector/></pointer></ret-type>
</vmethod>
</virtual-methods>
</class-type>

<class-type type-name='creature_interaction_effect_painst' inherits-from='creature_interaction_effect'>
<compound type-name='creature_interaction_effect_target' name='target'/>
</class-type>

<class-type type-name='creature_interaction_effect_swellingst' inherits-from='creature_interaction_effect'>
<compound type-name='creature_interaction_effect_target' name='target'/>
</class-type>

<class-type type-name='creature_interaction_effect_oozingst' inherits-from='creature_interaction_effect'>
<compound type-name='creature_interaction_effect_target' name='target'/>
</class-type>

<class-type type-name='creature_interaction_effect_bruisingst' inherits-from='creature_interaction_effect'>
<compound type-name='creature_interaction_effect_target' name='target'/>
</class-type>

<class-type type-name='creature_interaction_effect_blistersst' inherits-from='creature_interaction_effect'>
<compound type-name='creature_interaction_effect_target' name='target'/>
</class-type>

<class-type type-name='creature_interaction_effect_numbnessst' inherits-from='creature_interaction_effect'>
<compound type-name='creature_interaction_effect_target' name='target'/>
</class-type>

<class-type type-name='creature_interaction_effect_paralysisst' inherits-from='creature_interaction_effect'>
<compound type-name='creature_interaction_effect_target' name='target'/>
</class-type>

<class-type type-name='creature_interaction_effect_feverst' inherits-from='creature_interaction_effect'/>

<class-type type-name='creature_interaction_effect_bleedingst' inherits-from='creature_interaction_effect'>
<compound type-name='creature_interaction_effect_target' name='target'/>
</class-type>

<class-type type-name='creature_interaction_effect_cough_bloodst' inherits-from='creature_interaction_effect'/>

<class-type type-name='creature_interaction_effect_vomit_bloodst' inherits-from='creature_interaction_effect'/>

<class-type type-name='creature_interaction_effect_nauseast' inherits-from='creature_interaction_effect'/>

<class-type type-name='creature_interaction_effect_unconsciousnessst' inherits-from='creature_interaction_effect'/>

<class-type type-name='creature_interaction_effect_necrosisst' inherits-from='creature_interaction_effect'>
<compound type-name='creature_interaction_effect_target' name='target'/>
</class-type>

<class-type type-name='creature_interaction_effect_impair_functionst' inherits-from='creature_interaction_effect'>
<compound type-name='creature_interaction_effect_target' name='target'/>
</class-type>

<class-type type-name='creature_interaction_effect_drowsinessst' inherits-from='creature_interaction_effect'/>

<class-type type-name='creature_interaction_effect_dizzinessst' inherits-from='creature_interaction_effect'/>

<bitfield-type type-name='syndrome_flags' base-type='uint32_t'>
<flag-bit name='SYN_INJECTED'/>
<flag-bit name='SYN_CONTACT'/>
<flag-bit name='SYN_INHALED'/>
</bitfield-type>

<struct-type type-name='syndrome'>
<stl-string name='syn_name'/>
<stl-vector name='ce'>
<pointer type-name='creature_interaction_effect'/>
</stl-vector>
<stl-vector name='syn_affected_class'>
<pointer type-name='stl-string'/>
</stl-vector>
<stl-vector name='syn_affected_creature_1'>
<pointer type-name='stl-string'/>
</stl-vector>
<stl-vector name='syn_affected_creature_2'>
<pointer type-name='stl-string'/>
</stl-vector>
<stl-vector name='syn_immune_class'>
<pointer type-name='stl-string'/>
</stl-vector>
<stl-vector name='syn_immune_creature_1'>
<pointer type-name='stl-string'/>
</stl-vector>
<stl-vector name='syn_immune_creature_2'>
<pointer type-name='stl-string'/>
</stl-vector>
<compound name='flags' type-name='syndrome_flags'/>
<int32_t/>
</struct-type>
</data-definition>

<!--
Local Variables:
indent-tabs-mode: nil
nxml-child-indent: 4
End:
-->
Loading

0 comments on commit 6696efc

Please sign in to comment.