summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorPhilip <philip@philip-linuxlaptop.(none)>2010-11-09 06:04:59 (GMT)
committer Philip <philip@philip-linuxlaptop.(none)>2010-11-09 06:04:59 (GMT)
commitfebd9be62764a0b08c6c2501a87d073591343000 (patch)
tree8aca73a7742552e9db25a72e211e5ccae399405d /includes
parent16265e3736d5cf9e5620d423e03ed1df0ede50eb (diff)
downloadpowder-febd9be62764a0b08c6c2501a87d073591343000.zip
powder-febd9be62764a0b08c6c2501a87d073591343000.tar.gz
Added 3 more life types
Diffstat (limited to 'includes')
-rw-r--r--includes/defines.h4
-rw-r--r--includes/powder.h33
2 files changed, 23 insertions, 14 deletions
diff --git a/includes/defines.h b/includes/defines.h
index 53a0f19..7664161 100644
--- a/includes/defines.h
+++ b/includes/defines.h
@@ -18,8 +18,6 @@
#define THUMB_CACHE_SIZE 256
-#define NGOL 10
-
#define IMGCONNS 3
#define TIMEOUT 100
#define HTTP_TIMEOUT 10
@@ -58,6 +56,8 @@ extern unsigned char ZSIZE;
#define STAMP_Y 4
#define STAMP_MAX 120
+#define NGOL 13
+
#ifdef PIX16
typedef unsigned short pixel;
#else
diff --git a/includes/powder.h b/includes/powder.h
index 14f2e91..93fc0ab 100644
--- a/includes/powder.h
+++ b/includes/powder.h
@@ -125,7 +125,10 @@
#define PT_MOVE 84
#define PT_PGOL 85
#define PT_DMOE 86
-#define PT_NUM 87
+#define PT_34 87
+#define PT_LLIF 88
+#define PT_STAN 89
+#define PT_NUM 90
#define R_TEMP 22
#define MAX_TEMP 9999
@@ -302,6 +305,9 @@ static const part_type ptypes[PT_NUM] =
{"MOVE", PIXPACK(0xFFFFFF), 0.0f, 0.00f * CFDS, 0.90f, 0.00f, 0.0f, 0.0f, 0.00f, 0.000f * CFDS, 0, 0, 0, 0, 0, 1, 100, SC_LIFE, 9000.0f, 40, "'Move' particles! Does not move things.. it is a life type(245/368)", TYPE_SOLID},
{"PGOL", PIXPACK(0xE05010), 0.0f, 0.00f * CFDS, 0.90f, 0.00f, 0.0f, 0.0f, 0.00f, 0.000f * CFDS, 0, 0, 0, 0, 0, 1, 100, SC_LIFE, 9000.0f, 40, "Pseudo Life! (238/357)", TYPE_SOLID},
{"DMOE", PIXPACK(0x500000), 0.0f, 0.00f * CFDS, 0.90f, 0.00f, 0.0f, 0.0f, 0.00f, 0.000f * CFDS, 0, 0, 0, 0, 0, 1, 100, SC_LIFE, 9000.0f, 40, "Diamoeba! (5678/35678)", TYPE_SOLID},
+ {"34", PIXPACK(0x500050), 0.0f, 0.00f * CFDS, 0.90f, 0.00f, 0.0f, 0.0f, 0.00f, 0.000f * CFDS, 0, 0, 0, 0, 0, 1, 100, SC_LIFE, 9000.0f, 40, "34! (34/34)", TYPE_SOLID},
+ {"LLIF", PIXPACK(0x505050), 0.0f, 0.00f * CFDS, 0.90f, 0.00f, 0.0f, 0.0f, 0.00f, 0.000f * CFDS, 0, 0, 0, 0, 0, 1, 100, SC_LIFE, 9000.0f, 40, "Long Life! (5/345)", TYPE_SOLID},
+ {"STAN", PIXPACK(0x5000FF), 0.0f, 0.00f * CFDS, 0.90f, 0.00f, 0.0f, 0.0f, 0.00f, 0.000f * CFDS, 0, 0, 0, 0, 0, 1, 100, SC_LIFE, 9000.0f, 40, "Stains! (235678/3678)", TYPE_SOLID},
//Name Colour Advec Airdrag Airloss Loss Collid Grav Diffus Hotair Fal Burn Exp Mel Hrd M Weights Section H Ins(real world, by triclops200) Description
};
@@ -386,19 +392,22 @@ static part_state pstates[PT_NUM] =
/* HSWC */ {ST_NONE, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
/* IRON */ {ST_SOLID, PT_NONE, 0.0f, PT_LAVA, 1687.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
};
-static int grule[NGOL][10] =
+static int grule[NGOL][9] =
{
// 0,1,2,3,4,5,6,7,8,9 live=1 spawn=2 spawn&live=3
- {0,0,0,0,0,0,0,0,0,0},//blank
- {0,0,1,3,0,0,0,0,0,0},//GOL
- {0,0,1,3,0,0,2,0,0,0},//HLIF
- {0,0,0,2,3,3,1,1,0,0},//ASIM
- {0,1,1,2,0,1,2,0,0,0},//2x2
- {0,0,0,3,1,0,3,3,3,0},//DANI
- {0,1,0,3,0,3,0,2,1,0},//AMOE
- {0,0,1,2,1,1,2,0,2,0},//MOVE
- {0,0,1,3,0,2,0,2,1,0},//PGOL
- {0,0,0,2,0,3,3,3,3,0},//DMOE
+ {0,0,0,0,0,0,0,0,0},//blank
+ {0,0,1,3,0,0,0,0,0},//GOL
+ {0,0,1,3,0,0,2,0,0},//HLIF
+ {0,0,0,2,3,3,1,1,0},//ASIM
+ {0,1,1,2,0,1,2,0,0},//2x2
+ {0,0,0,3,1,0,3,3,3},//DANI
+ {0,1,0,3,0,3,0,2,1},//AMOE
+ {0,0,1,2,1,1,2,0,2},//MOVE
+ {0,0,1,3,0,2,0,2,1},//PGOL
+ {0,0,0,2,0,3,3,3,3},//DMOE
+ {0,0,0,3,3,0,0,0,0},//34
+ {0,0,0,2,2,3,0,0,0},//LLIF
+ {0,0,1,3,0,1,3,3,3},//STAN
};
extern int isplayer;
extern float player[27];