From 7c9efd7aaf8a65ba032426dcc318a9cab4d37985 Mon Sep 17 00:00:00 2001 From: Jérôme Jutteau Date: Wed, 1 Jun 2011 18:31:05 +0200 Subject: digital/io-hub: add bonus coeff to elements and adjusted scores algorithms --- digital/io-hub/src/robospierre/element.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'digital/io-hub/src/robospierre/element.h') diff --git a/digital/io-hub/src/robospierre/element.h b/digital/io-hub/src/robospierre/element.h index bcc40f43..fa9fced7 100644 --- a/digital/io-hub/src/robospierre/element.h +++ b/digital/io-hub/src/robospierre/element.h @@ -90,6 +90,8 @@ struct element_t vect_t pos; /** Emplacement attributes. */ uint8_t attr; + /** Bonus coefficient (or Mallus if negative). */ + int8_t bonus; }; typedef struct element_t element_t; @@ -104,6 +106,8 @@ typedef struct element_t element_t; #define ELEMENT_UNLOAD_SAFE_START 63 #define ELEMENT_UNLOAD_SAFE_END 66 +#define ELEMENT_BONUS_COEFF 100 + /** Elements on table. */ extern struct element_t element_table[]; -- cgit v1.2.3