CleverRaven/Cataclysm-DDA — pull request #8432 by HuXTUS (2014-08-04 07:11:28+00:00)
Title: New electronics [WIP][discuss]

New items:
* Tablet PC with colorful E-Ink display
* SD-Memory card (encrypted sometimes)
* Digital cameras

--------------

#### Tablet PC with colorful E-Ink display

This tablet PC has E-Ink display, thus it consumes energy only when user works with it and when playing music.

With this gadget you can:
* view photos
* turn on/off music
* view recipes
* view your documents (WIP)
* download data from memory card
* upload useful data to memory card (WIP)
* decrypt encrypted memory cards

###### download data from memory card ( **MC** )
Insert MC that you found into gadget and try download data. Every MC initialized with random stuff and can be empty, contain family photos, music and/or recipes. Also it can be encrypted. If you lucky, data from MC will appear in your Tablet PC.

###### decrypt encrypted memory cards
Computer skill needed. You can lost data on MC if you failed (but you practice computer skill anyway), but encrypted MC's has bigger chance to contain data.

###### view photos
You collect photos on your device from MC's. Then you can view this photos. It increases your morale, but photos consumes from device (like chapters from funny books), and you need search new MC with photos.

###### turn on/off music
Like with photos, you can collect music. Music not consumed from device, but the more music you have, the better for you: maximum of given morale limited by count of songs on device (but can't be more that 100).

May be we need trait "music lover", that increased max of limit?

Activating music on device will set `item->active = true` and starting consume batteries, device will `sound` in some radius. If you hear music, your morale increased.

Important: I added new effect `music`. It work like semaphore to all music-devices (this tablet, mp3 and vehicle music).

Algo:
```
if (!p->has_effect("music")) {
p->add_effect("music", 1);
p->add_morale(MORALE_MUSIC, , , , );
}
```

###### view recipes
If you lucky, you can find (and download to tablet) MC with recipe. In this PR I limited recipes with max=3 level of food recipes, one that does not scare, but you can do any other recipe in future.

If your device contain recipes, just select one and it appear on E-Ink display. Now the tablet can be used in crafts like book (but books contains many recipes, but tablet only selected).

I slightly updated method `has_recipe()`, now any item in game can contain recipe. Just add tag "HAS_RECIPE" and set `item_vars["RECIPE"]="ident"`

This gives us the ability to create items (also in realtime) such as:
* plain paper with a recipe
* writing set to rewrite the recipe on paper
* print the recipe on the printer
* and even artifacts with a prescription. Just for fun we can add in museum stone with recipe craft of stone knife.

#### Digital cameras [WIP, just started]
Just for fun. you can take a shot monsters. Photos will produce different quality. You can watch photos on your camera and upload it to MC, then download to tablet PC.

I do not think of why this might be the case, but I like collecting something in games, and here we will be able to collect pictures of monsters.

May be we can create quest (NPC) - "take a shot of Hulk with good quality".