added ingredients, more vegetables in recipe

This commit is contained in:
tastytea 2018-01-22 06:25:56 +01:00
parent 207744e323
commit 48c15f324b
Signed by: tastytea
GPG Key ID: 59346E0EA35C67E5
4 changed files with 10 additions and 4 deletions

View File

@ -2,7 +2,7 @@ cmake_minimum_required (VERSION 3.7)
include(GNUInstallDirs) include(GNUInstallDirs)
project (soupbot project (soupbot
VERSION 0.2 VERSION 0.2.1
LANGUAGES CXX LANGUAGES CXX
) )
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wall") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wall")

View File

@ -8,7 +8,7 @@
* C++ compiler (tested: gcc 6.4) * C++ compiler (tested: gcc 6.4)
* [cmake](https://cmake.org/) (tested: 3.9.6) * [cmake](https://cmake.org/) (tested: 3.9.6)
* [boost](http://www.boost.org/) (tested: 1.63.0) * [boost](http://www.boost.org/) (tested: 1.63.0)
* [mastodon-cpp](https://github.com/tastytea/mastodon-cpp) (at least: 0.1.4) * [mastodon-cpp](https://github.com/tastytea/mastodon-cpp) (at least: 0.1.5)
## Get sourcecode ## Get sourcecode

View File

@ -33,7 +33,8 @@
"mangel", "mangel",
"turnip", "turnip",
"maize", "maize",
"sweet potatoes" "sweet potatoes",
"pumpkin"
], ],
"spices": "spices":
[ [
@ -58,7 +59,8 @@
"allspice", "allspice",
"cumin", "cumin",
"curcuma", "curcuma",
"coriander" "coriander",
"parsley"
], ],
"fruits": "fruits":
[ [

View File

@ -125,10 +125,14 @@ int main(int argc, char *argv[])
string toot = "Todays #soup is made of:\n\n"; string toot = "Todays #soup is made of:\n\n";
toot += "1 part " + get_ingredient(vegetables); toot += "1 part " + get_ingredient(vegetables);
if (dice() > 0)
toot += ",\n1 part " + get_ingredient(vegetables);
if (dice() > 0) if (dice() > 0)
toot += ",\n1 part " + get_ingredient(vegetables); toot += ",\n1 part " + get_ingredient(vegetables);
if (dice() > 1) if (dice() > 1)
toot += ",\n1 part " + get_ingredient(vegetables); toot += ",\n1 part " + get_ingredient(vegetables);
if (dice() > 2)
toot += ",\n1 part " + get_ingredient(vegetables);
if (dice() > 1) if (dice() > 1)
toot += ",\na few " + get_ingredient(fruits); toot += ",\na few " + get_ingredient(fruits);