Template:Hospital bed/row/doc

From RimWorld Wiki
Jump to navigation Jump to search



I created this template to see how feasible it was to use {{#ask}} together with templates to create SMW-powered tables that compared structures with different quality. We've had good results with this Template:Clothing material table, but I'm not sure this works as well here.

Type Cost Beauty Comfort Cover effectiveness Flamability Market value Mass Max hit points Work to build


Gold Gold 40 Component 5 Steel 80 0 0.8 40% 0% $570.00 45.00 kg 375 89
Plasteel Plasteel 40 Component 5 Steel 80 0 0.8 40% 0% $570.00 45.00 kg 375 89
Silver Silver 40 Component 5 Steel 80 0 0.8 40% 0% $570.00 45.00 kg 375 89
Steel Steel 40 Component 5 Steel 80 0 0.8 40% 0% $570.00 45.00 kg 375 89
Uranium Uranium 40 Component 5 Steel 80 0 0.8 40% 0% $570.00 45.00 kg 375 89

What would we need to add to make this work?

There are a few things that would require significant effort to be SMW-ified in a table like this instead of hardcoded. Most of them aren't too painful, but the biggest one for now is materials:

  • I'd need to implement deduplication so we don't say "40 steel" + "80 steel" and instead say "120 steel"
  • I'd need to implement material amount modifiers -- the fact that gold and silver take 10x the materials
  • The mapping of item name => icon in Template:icon is a bit of a mess -- saving that cleanup for another day.