Processed profession list

develop
Petr Mrázek 2010-04-04 12:43:11 +02:00
parent 51a1ec5c1e
commit 1d513256fd
2 changed files with 101 additions and 303 deletions

@ -186,7 +186,7 @@ void printCreature(DFHack::API & DF, const DFHack::t_creature & creature)
cout << endl; cout << endl;
addendl = false; addendl = false;
} }
cout << "profession: " /*<< mem->getProfession(creature.profession) <<*/ "(" << (int) creature.profession << ")"; cout << "profession: " << mem->getProfession(creature.profession) << "(" << (int) creature.profession << ")";
/* /*
if(creature.custom_profession[0]) if(creature.custom_profession[0])
{ {

@ -1300,308 +1300,106 @@
==================================================================== ====================================================================
TODO: Parse this and turn it into Profession tags. TODO: Parse this and turn it into Profession tags.
Cross-reference with Memory-40d.xml Cross-reference with Memory-40d.xml
<!-- <Profession can_assign_labors="true" is_military="false" name="MINER">0</Profession>
case 0: <Profession can_assign_labors="true" is_military="false" name="WOODWORKER">1</Profession>
result = sub_40FDD0("MINER"); <Profession can_assign_labors="true" is_military="false" name="CARPENTER">2</Profession>
break; <Profession can_assign_labors="true" is_military="false" name="BOWYER">3</Profession>
case 1: <Profession can_assign_labors="true" is_military="false" name="WOODCUTTER">4</Profession>
result = sub_40FDD0("WOODWORKER"); <Profession can_assign_labors="true" is_military="false" name="STONEWORKER">5</Profession>
break; <Profession can_assign_labors="true" is_military="false" name="ENGRAVER">6</Profession>
case 2: <Profession can_assign_labors="true" is_military="false" name="MASON">7</Profession>
result = sub_40FDD0("CARPENTER"); <Profession can_assign_labors="true" is_military="false" name="RANGER">8</Profession>
break; <Profession can_assign_labors="true" is_military="false" name="ANIMAL_CARETAKER">9</Profession>
case 3: <Profession can_assign_labors="true" is_military="false" name="ANIMAL_TRAINER">10</Profession>
result = sub_40FDD0("BOWYER"); <Profession can_assign_labors="true" is_military="false" name="HUNTER">11</Profession>
break; <Profession can_assign_labors="true" is_military="false" name="TRAPPER">12</Profession>
case 4: <Profession can_assign_labors="true" is_military="false" name="ANIMAL_DISSECTOR">13</Profession>
result = sub_40FDD0("WOODCUTTER"); <Profession can_assign_labors="true" is_military="false" name="METALSMITH">14</Profession>
break; <Profession can_assign_labors="true" is_military="false" name="FURNACE_OPERATOR">15</Profession>
case 5: <Profession can_assign_labors="true" is_military="false" name="WEAPONSMITH">16</Profession>
result = sub_40FDD0("STONEWORKER"); <Profession can_assign_labors="true" is_military="false" name="ARMORER">17</Profession>
break; <Profession can_assign_labors="true" is_military="false" name="BLACKSMITH">18</Profession>
case 6: <Profession can_assign_labors="true" is_military="false" name="METALCRAFTER">19</Profession>
result = sub_40FDD0("ENGRAVER"); <Profession can_assign_labors="true" is_military="false" name="JEWELER">20</Profession>
break; <Profession can_assign_labors="true" is_military="false" name="GEM_CUTTER">21</Profession>
case 7: <Profession can_assign_labors="true" is_military="false" name="GEM_SETTER">22</Profession>
result = sub_40FDD0("MASON"); <Profession can_assign_labors="true" is_military="false" name="CRAFTSMAN">23</Profession>
break; <Profession can_assign_labors="true" is_military="false" name="WOODCRAFTER">24</Profession>
case 8: <Profession can_assign_labors="true" is_military="false" name="STONECRAFTER">25</Profession>
result = sub_40FDD0("RANGER"); <Profession can_assign_labors="true" is_military="false" name="LEATHERWORKER">26</Profession>
break; <Profession can_assign_labors="true" is_military="false" name="BONE_CARVER">27</Profession>
case 9: <Profession can_assign_labors="true" is_military="false" name="WEAVER">28</Profession>
result = sub_40FDD0("ANIMAL_CARETAKER"); <Profession can_assign_labors="true" is_military="false" name="CLOTHIER">29</Profession>
break; <Profession can_assign_labors="true" is_military="false" name="GLASSMAKER">30</Profession>
case 10: <Profession can_assign_labors="true" is_military="false" name="STRAND_EXTRACTOR">31</Profession>
result = sub_40FDD0("ANIMAL_TRAINER"); <Profession can_assign_labors="true" is_military="false" name="FISHERY_WORKER">32</Profession>
break; <Profession can_assign_labors="true" is_military="false" name="FISHERMAN">33</Profession>
case 11: <Profession can_assign_labors="true" is_military="false" name="FISH_DISSECTOR">34</Profession>
result = sub_40FDD0("HUNTER"); <Profession can_assign_labors="true" is_military="false" name="FISH_CLEANER">35</Profession>
break; <Profession can_assign_labors="true" is_military="false" name="FARMER">36</Profession>
case 12: <Profession can_assign_labors="true" is_military="false" name="CHEESE_MAKER">37</Profession>
result = sub_40FDD0("TRAPPER"); <Profession can_assign_labors="true" is_military="false" name="MILKER">38</Profession>
break; <Profession can_assign_labors="true" is_military="false" name="COOK">39</Profession>
case 13: <Profession can_assign_labors="true" is_military="false" name="THRESHER">40</Profession>
result = sub_40FDD0("ANIMAL_DISSECTOR"); <Profession can_assign_labors="true" is_military="false" name="MILLER">41</Profession>
break; <Profession can_assign_labors="true" is_military="false" name="BUTCHER">42</Profession>
case 14: <Profession can_assign_labors="true" is_military="false" name="TANNER">43</Profession>
result = sub_40FDD0("METALSMITH"); <Profession can_assign_labors="true" is_military="false" name="DYER">44</Profession>
break; <Profession can_assign_labors="true" is_military="false" name="PLANTER">45</Profession>
case 15: <Profession can_assign_labors="true" is_military="false" name="HERBALIST">46</Profession>
result = sub_40FDD0("FURNACE_OPERATOR"); <Profession can_assign_labors="true" is_military="false" name="BREWER">47</Profession>
break; <Profession can_assign_labors="true" is_military="false" name="SOAP_MAKER">48</Profession>
case 16: <Profession can_assign_labors="true" is_military="false" name="POTASH_MAKER">49</Profession>
result = sub_40FDD0("WEAPONSMITH"); <Profession can_assign_labors="true" is_military="false" name="LYE_MAKER">50</Profession>
break; <Profession can_assign_labors="true" is_military="false" name="WOOD_BURNER">51</Profession>
case 17: <Profession can_assign_labors="true" is_military="false" name="ENGINEER">52</Profession>
result = sub_40FDD0("ARMORER"); <Profession can_assign_labors="true" is_military="false" name="MECHANIC">53</Profession>
break; <Profession can_assign_labors="true" is_military="false" name="SIEGE_ENGINEER">54</Profession>
case 18: <Profession can_assign_labors="true" is_military="false" name="SIEGE_OPERATOR">55</Profession>
result = sub_40FDD0("BLACKSMITH"); <Profession can_assign_labors="true" is_military="false" name="PUMP_OPERATOR">56</Profession>
break; <Profession can_assign_labors="true" is_military="false" name="CLERK">57</Profession>
case 19: <Profession can_assign_labors="true" is_military="false" name="ARCHITECT">60</Profession>
result = sub_40FDD0("METALCRAFTER"); <Profession can_assign_labors="true" is_military="false" name="DOCTOR">62</Profession>
break; <Profession can_assign_labors="true" is_military="false" name="DIAGNOSER">63</Profession>
case 20: <Profession can_assign_labors="true" is_military="false" name="BONE_SETTER">64</Profession>
result = sub_40FDD0("JEWELER"); <Profession can_assign_labors="true" is_military="false" name="SUTURER">65</Profession>
break; <Profession can_assign_labors="true" is_military="false" name="SURGEON">66</Profession>
case 21: <Profession can_assign_labors="true" is_military="false" name="ADMINISTRATOR">58</Profession>
result = sub_40FDD0("GEM_CUTTER"); <Profession can_assign_labors="true" is_military="false" name="TRADER">59</Profession>
break; <Profession can_assign_labors="true" is_military="false" name="ALCHEMIST">61</Profession>
case 22: <Profession can_assign_labors="true" is_military="false" name="MERCHANT">67</Profession>
result = sub_40FDD0("GEM_SETTER"); <Profession can_assign_labors="true" is_military="true" name="HAMMERMAN">68</Profession>
break; <Profession can_assign_labors="true" is_military="true" name="MASTER_HAMMERMAN">69</Profession>
case 23: <Profession can_assign_labors="true" is_military="true" name="SPEARMAN">70</Profession>
result = sub_40FDD0("CRAFTSMAN"); <Profession can_assign_labors="true" is_military="true" name="MASTER_SPEARMAN">71</Profession>
break; <Profession can_assign_labors="true" is_military="true" name="CROSSBOWMAN">72</Profession>
case 24: <Profession can_assign_labors="true" is_military="true" name="MASTER_CROSSBOWMAN">73</Profession>
result = sub_40FDD0("WOODCRAFTER"); <Profession can_assign_labors="true" is_military="true" name="WRESTLER">74</Profession>
break; <Profession can_assign_labors="true" is_military="true" name="MASTER_WRESTLER">75</Profession>
case 25: <Profession can_assign_labors="true" is_military="true" name="AXEMAN">76</Profession>
result = sub_40FDD0("STONECRAFTER"); <Profession can_assign_labors="true" is_military="true" name="MASTER_AXEMAN">77</Profession>
break; <Profession can_assign_labors="true" is_military="true" name="SWORDSMAN">78</Profession>
case 26: <Profession can_assign_labors="true" is_military="true" name="MASTER_SWORDSMAN">79</Profession>
result = sub_40FDD0("LEATHERWORKER"); <Profession can_assign_labors="true" is_military="true" name="MACEMAN">80</Profession>
break; <Profession can_assign_labors="true" is_military="true" name="MASTER_MACEMAN">81</Profession>
case 27: <Profession can_assign_labors="true" is_military="true" name="PIKEMAN">82</Profession>
result = sub_40FDD0("BONE_CARVER"); <Profession can_assign_labors="true" is_military="true" name="MASTER_PIKEMAN">83</Profession>
break; <Profession can_assign_labors="true" is_military="true" name="BOWMAN">84</Profession>
case 28: <Profession can_assign_labors="true" is_military="true" name="MASTER_BOWMAN">85</Profession>
result = sub_40FDD0("WEAVER"); <Profession can_assign_labors="true" is_military="true" name="BLOWGUNMAN">86</Profession>
break; <Profession can_assign_labors="true" is_military="true" name="MASTER_BLOWGUNMAN">87</Profession>
case 29: <Profession can_assign_labors="true" is_military="true" name="RECRUIT">90</Profession>
result = sub_40FDD0("CLOTHIER"); <Profession can_assign_labors="true" is_military="false" name="TRAINED_HUNTER">91</Profession>
break; <Profession can_assign_labors="true" is_military="false" name="TRAINED_WAR">92</Profession>
case 30: <Profession can_assign_labors="true" is_military="false" name="MASTER_THIEF">93</Profession>
result = sub_40FDD0("GLASSMAKER"); <Profession can_assign_labors="true" is_military="false" name="THIEF">94</Profession>
break; <Profession can_assign_labors="true" is_military="false" name="STANDARD">95</Profession>
case 31: <Profession can_assign_labors="true" is_military="false" name="CHILD">96</Profession>
result = sub_40FDD0("STRAND_EXTRACTOR"); <Profession can_assign_labors="true" is_military="false" name="BABY">97</Profession>
break; <Profession can_assign_labors="true" is_military="false" name="DRUNK">98</Profession>
case 32: <Profession can_assign_labors="true" is_military="true" name="LASHER">88</Profession>
result = sub_40FDD0("FISHERY_WORKER"); <Profession can_assign_labors="true" is_military="true" name="MASTER_LASHER">89</Profession>
break; <Profession can_assign_labors="true" is_military="false" name="None">90</Profession>
case 33:
result = sub_40FDD0("FISHERMAN");
break;
case 34:
result = sub_40FDD0("FISH_DISSECTOR");
break;
case 35:
result = sub_40FDD0("FISH_CLEANER");
break;
case 36:
result = sub_40FDD0("FARMER");
break;
case 37:
result = sub_40FDD0("CHEESE_MAKER");
break;
case 38:
result = sub_40FDD0("MILKER");
break;
case 39:
result = sub_40FDD0("COOK");
break;
case 40:
result = sub_40FDD0("THRESHER");
break;
case 41:
result = sub_40FDD0("MILLER");
break;
case 42:
result = sub_40FDD0("BUTCHER");
break;
case 43:
result = sub_40FDD0("TANNER");
break;
case 44:
result = sub_40FDD0("DYER");
break;
case 45:
result = sub_40FDD0("PLANTER");
break;
case 46:
result = sub_40FDD0("HERBALIST");
break;
case 47:
result = sub_40FDD0("BREWER");
break;
case 48:
result = sub_40FDD0("SOAP_MAKER");
break;
case 49:
result = sub_40FDD0("POTASH_MAKER");
break;
case 50:
result = sub_40FDD0("LYE_MAKER");
break;
case 51:
result = sub_40FDD0("WOOD_BURNER");
break;
case 52:
result = sub_40FDD0("ENGINEER");
break;
case 53:
result = sub_40FDD0("MECHANIC");
break;
case 54:
result = sub_40FDD0("SIEGE_ENGINEER");
break;
case 55:
result = sub_40FDD0("SIEGE_OPERATOR");
break;
case 56:
result = sub_40FDD0("PUMP_OPERATOR");
break;
case 57:
result = sub_40FDD0("CLERK");
break;
case 60:
result = sub_40FDD0("ARCHITECT");
break;
case 62:
result = sub_40FDD0("DOCTOR");
break;
case 63:
result = sub_40FDD0("DIAGNOSER");
break;
case 64:
result = sub_40FDD0("BONE_SETTER");
break;
case 65:
result = sub_40FDD0("SUTURER");
break;
case 66:
result = sub_40FDD0("SURGEON");
break;
case 58:
result = sub_40FDD0("ADMINISTRATOR");
break;
case 59:
result = sub_40FDD0("TRADER");
break;
case 61:
result = sub_40FDD0("ALCHEMIST");
break;
case 67:
result = sub_40FDD0("MERCHANT");
break;
case 68:
result = sub_40FDD0("HAMMERMAN");
break;
case 69:
result = sub_40FDD0("MASTER_HAMMERMAN");
break;
case 70:
result = sub_40FDD0("SPEARMAN");
break;
case 71:
result = sub_40FDD0("MASTER_SPEARMAN");
break;
case 72:
result = sub_40FDD0("CROSSBOWMAN");
break;
case 73:
result = sub_40FDD0("MASTER_CROSSBOWMAN");
break;
case 74:
result = sub_40FDD0("WRESTLER");
break;
case 75:
result = sub_40FDD0("MASTER_WRESTLER");
break;
case 76:
result = sub_40FDD0("AXEMAN");
break;
case 77:
result = sub_40FDD0("MASTER_AXEMAN");
break;
case 78:
result = sub_40FDD0("SWORDSMAN");
break;
case 79:
result = sub_40FDD0("MASTER_SWORDSMAN");
break;
case 80:
result = sub_40FDD0("MACEMAN");
break;
case 81:
result = sub_40FDD0("MASTER_MACEMAN");
break;
case 82:
result = sub_40FDD0("PIKEMAN");
break;
case 83:
result = sub_40FDD0("MASTER_PIKEMAN");
break;
case 84:
result = sub_40FDD0("BOWMAN");
break;
case 85:
result = sub_40FDD0("MASTER_BOWMAN");
break;
case 86:
result = sub_40FDD0("BLOWGUNMAN");
break;
case 87:
result = sub_40FDD0("MASTER_BLOWGUNMAN");
break;
case 90:
result = sub_40FDD0("RECRUIT");
break;
case 91:
result = sub_40FDD0("TRAINED_HUNTER");
break;
case 92:
result = sub_40FDD0("TRAINED_WAR");
break;
case 93:
result = sub_40FDD0("MASTER_THIEF");
break;
case 94:
result = sub_40FDD0("THIEF");
break;
case 95:
result = sub_40FDD0("STANDARD");
break;
case 96:
result = sub_40FDD0("CHILD");
break;
case 97:
result = sub_40FDD0("BABY");
break;
case 98:
result = sub_40FDD0("DRUNK");
break;
case 88:
result = sub_40FDD0("LASHER");
break;
case 89:
result = sub_40FDD0("MASTER_LASHER");
break;
default:
result = sub_40A070("NONE", 4u);
break;
-->
==================================================================== ====================================================================
J O B S J O B S
==================================================================== ====================================================================