From 0908f1bd900dc53a12b7ceba89e61bbaf2a4f639 Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Mon, 2 Jan 2017 19:31:53 +0100 Subject: Initial --- System.c4g/ObjectGlobals.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 System.c4g/ObjectGlobals.c (limited to 'System.c4g/ObjectGlobals.c') diff --git a/System.c4g/ObjectGlobals.c b/System.c4g/ObjectGlobals.c new file mode 100644 index 0000000..7d6fe7d --- /dev/null +++ b/System.c4g/ObjectGlobals.c @@ -0,0 +1,26 @@ +#strict 2 + +global func SellTo(int iByPlr) +{ + return GetID(); +} + +global func CalcValue(object inBase, int forPlayer) +{ + return CalcDefValue(inBase, forPlayer); +} + +global func CalcDefValue(object inBase, int forPlayer) +{ + return GetDefValue(GetID()); +} + +global func CalcBuyValue(id ID, int value) +{ + return value; +} + +global func CalcSellValue(object obj, int value) +{ + return value; +} -- cgit v1.2.3-54-g00ecf