Module:Body Part Variants

From Caves of Qud Wiki
Revision as of 19:38, 6 August 2020 by Teamtoto (talk | contribs)
Jump to navigation Jump to search

local p = {}

local variants = {['Nuclear Protrusion'] = 'Head',
['Central Node'] = 'Head',
['Blossom'] = 'Head',
['Central Lobe'] = 'Head',
['Cap'] = 'Head',
['Top Rail'] = 'Head',
['Header'] = 'Head',
['Skull'] = 'Head',
['Centerpiece'] = 'Head',
['Ear'] = 'Head',
['Pillow'] = 'Head',
['Top'] = 'Head',
['Control Unit'] = 'Head',
['Head Section'] = 'Head',
['Upper Dome'] = 'Head',
['Central Mass'] = 'Head',
['Neck'] = 'Head',
['Antennae'] = 'Face',
['Feelers'] = 'Face',
['Sensor Array'] = 'Face',
['Sensory Bulb'] = 'Face',
['Knocker'] = 'Face',
['Skull Face'] = 'Face',
['Decoration'] = 'Face',
['Splat'] = 'Face',
['Pillowcase'] = 'Face',
['Access Panel'] = 'Face',
['Faceplate'] = 'Face',
['Lip'] = 'Face',
['Extra Face'] = 'Face',
['Chassis'] = 'Back',
['Membrane'] = 'Back',
['Frame'] = 'Back',
['Molding'] = 'Back',
['Breadth'] = 'Back',
['Tablecloth'] = 'Back',
['Blanket'] = 'Back',
['Case'] = 'Back',
['Equipment Rack'] = 'Back',
['Armature'] = 'Arm',
['Leg'] = 'Arm',
['Support Strut'] = 'Arm',
['Frond'] = 'Arm',
['Stem'] = 'Arm',
['Tendril'] = 'Arm',
['Branch'] = 'Arm',
['Lobe'] = 'Arm',
['Taproot'] = 'Arm',
['Stalk'] = 'Arm',
['Fibrous Node'] = 'Arm',
['Hinge'] = 'Arm',
['Stud'] = 'Arm',
['Knot'] = 'Arm',
['Armbone'] = 'Arm',
['Support Pole'] = 'Arm',
['Pipe'] = 'Arm',
['Reinforcement'] = 'Arm',
['Side Rail'] = 'Arm',
['Arm Section'] = 'Arm',
['Robo-Arm'] = 'Arm',
['Manipulator'] = 'Hand',
['Pincer'] = 'Hand',
['Pseudopod'] = 'Hand',
['Tentacle'] = 'Hand',
['Leaf'] = 'Hand',
['Twig'] = 'Hand',
['Bifurcation'] = 'Hand',
['Fine Root'] = 'Hand',
['Hypha'] = 'Hand',
['Knob'] = 'Hand',
['Small Crack'] = 'Hand',
['Shelf'] = 'Hand',
['Handbone'] = 'Hand',
['Tie Point'] = 'Hand',
['Divider'] = 'Hand',
['Drawer'] = 'Hand',
['Top Drawer'] = 'Hand',
['Bottom Drawer'] = 'Hand',
['Arm Stump'] = 'Hand',
['Side'] = 'Hand',
['Vane'] = 'Hand',
['Rail'] = 'Hand',
['Hand Section'] = 'Hand',
['Opening'] = 'Hand',
['Handle'] = 'Hand',
['Robo-Hand'] = 'Hand',
['Manipulators'] = 'Hands',
['Pincers'] = 'Hands',
['Pseudopods'] = 'Hands',
['Tentacles'] = 'Hands',
['Side Fins'] = 'Hands',
['Leaves'] = 'Hands',
['Twigs'] = 'Hands',
['Bifurcations'] = 'Hands',
['Lateral Hyphae'] = 'Hands',
['Knobs'] = 'Hands',
['Handbones'] = 'Hands',
['Arm Stumps'] = 'Hands',
['Sides'] = 'Hands',
['Vanes'] = 'Hands',
['Rails'] = 'Hands',
['Hand Sections'] = 'Hands',
['Robo-Hands'] = 'Hands',
['Legs'] = 'Feet',
['Support Struts'] = 'Feet',
['Undercarriage'] = 'Feet',
['Bottom Rail'] = 'Feet',
['Foundation'] = 'Feet',
['Base'] = 'Feet',
['Footbones'] = 'Feet',
['Front Legs'] = 'Feet',
['Rear Legs'] = 'Feet',
['Rockers'] = 'Feet',
['Bottom'] = 'Feet',
['Lower Hyphae'] = 'Roots',
['Stakes'] = 'Roots',
['Mulch'] = 'Roots',
['Wheels'] = 'Tread',
['Dorsal Fin'] = 'Fin',
['Tail Fin'] = 'Fin',
['Hardpoint'] = 'Missile Weapon',
['Cybernetic Arm'] = 'Missile Weapon',
['Middle Hardpoint'] = 'Thrown Weapon'
}

function p.gettype(part)
  return variants[part]
end

return p