AddDrink und AddFood sind deprecated
Das sind sie auch schon lang, aber Manpages entsprechend
ergaenzt und Modifier deprecated in den Code eingefuegt.
Change-Id: I7fd1e4f504cc04c043e42d33caea7c7062cd6bed
diff --git a/doc/sphinx/lfun/AddDrink.rst b/doc/sphinx/lfun/obsolete/AddDrink.rst
similarity index 80%
rename from doc/sphinx/lfun/AddDrink.rst
rename to doc/sphinx/lfun/obsolete/AddDrink.rst
index 7330ba9..b02dcb1 100644
--- a/doc/sphinx/lfun/AddDrink.rst
+++ b/doc/sphinx/lfun/obsolete/AddDrink.rst
@@ -1,5 +1,15 @@
AddDrink()
==========
+
+OBSOLETE LFUN
+-------------
+
+ Diese Efun existiert nicht mehr. Bitte stattdessen den Hook
+ H_HOOK_INSERT benutzen. (s. /doc/std/hooks)
+
+FUNKTION
+--------
+
::
void AddDrink(string nameOfDrink, mixed ids, int price, int heal,
diff --git a/doc/sphinx/lfun/AddFood.rst b/doc/sphinx/lfun/obsolete/AddFood.rst
similarity index 78%
rename from doc/sphinx/lfun/AddFood.rst
rename to doc/sphinx/lfun/obsolete/AddFood.rst
index e430fed..1e057af 100644
--- a/doc/sphinx/lfun/AddFood.rst
+++ b/doc/sphinx/lfun/obsolete/AddFood.rst
@@ -1,5 +1,15 @@
AddFood()
=========
+
+OBSOLETE LFUN
+-------------
+
+ Diese Efun existiert nicht mehr. Bitte stattdessen den Hook
+ H_HOOK_INSERT benutzen. (s. /doc/std/hooks)
+
+FUNKTION
+--------
+
::
void AddFood(string nameOfFood, mixed ids, int price, int heal,
diff --git a/std/room/pub.c b/std/room/pub.c
index cad1289..bdd2c90 100644
--- a/std/room/pub.c
+++ b/std/room/pub.c
@@ -187,7 +187,7 @@
// Diese Methode ist nur noch aus Kompatibilitaetsgruenden vorhanden und darf
// nicht mehr verwendet werden!!!
-void AddFood(string nameOfFood, mixed ids, int price, int heal,
+deprecated void AddFood(string nameOfFood, mixed ids, int price, int heal,
mixed myFunction)
{
if ( !nameOfFood || !ids || !price)
@@ -200,7 +200,7 @@
// Diese Methode ist nur noch aus Kompatibilitaetsgruenden vorhanden und darf
// nicht mehr verwendet werden!!!
-void AddDrink(string nameOfDrink, mixed ids, int price, int heal,
+deprecated void AddDrink(string nameOfDrink, mixed ids, int price, int heal,
int strength, int soak, mixed myFunction)
{
if ( !nameOfDrink || !ids || !price )