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)
project (soupbot
VERSION 0.2
VERSION 0.2.1
LANGUAGES CXX
)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wall")

View File

@ -8,7 +8,7 @@
* C++ compiler (tested: gcc 6.4)
* [cmake](https://cmake.org/) (tested: 3.9.6)
* [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

View File

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

View File

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