summaryrefslogtreecommitdiff
path: root/src/elements
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-03-17 18:15:45 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-03-17 18:15:45 (GMT)
commit4d45bbedb3f46bc5ffc40fc0e4618252bd4a63d4 (patch)
treec79ddbf5d1c13890912656c68490d514eb134763 /src/elements
parent152c29c868594da0bfa58c48283f334b4f3290a6 (diff)
downloadpowder-4d45bbedb3f46bc5ffc40fc0e4618252bd4a63d4.zip
powder-4d45bbedb3f46bc5ffc40fc0e4618252bd4a63d4.tar.gz
Fix glow for deut at ligh
Diffstat (limited to 'src/elements')
-rw-r--r--src/elements/deut.c11
-rw-r--r--src/elements/ligh.c9
2 files changed, 11 insertions, 9 deletions
diff --git a/src/elements/deut.c b/src/elements/deut.c
index 7289538..f4ed349 100644
--- a/src/elements/deut.c
+++ b/src/elements/deut.c
@@ -75,12 +75,13 @@ int update_DEUT(UPDATE_FUNC_ARGS) {
int graphics_DEUT(GRAPHICS_FUNC_ARGS)
{
- if(cpart->life>=700)
+ if(cpart->life>=240)
{
- *colr += cpart->life*1;
- *colg += cpart->life*2;
- *colb += cpart->life*3;
- *pixel_mode |= PMODE_GLOW;
+ *firea = 60;
+ *firer = *colr += cpart->life*1;
+ *fireg = *colg += cpart->life*2;
+ *fireb = *colb += cpart->life*3;
+ *pixel_mode |= PMODE_GLOW | FIRE_ADD;
}
else
{
diff --git a/src/elements/ligh.c b/src/elements/ligh.c
index 0fb700e..b62367a 100644
--- a/src/elements/ligh.c
+++ b/src/elements/ligh.c
@@ -287,9 +287,10 @@ int update_LIGH(UPDATE_FUNC_ARGS)
}
int graphics_LIGH(GRAPHICS_FUNC_ARGS)
{
- *colr = 235;
- *colg = 245;
- *colb = 255;
- *pixel_mode |= PMODE_GLOW;
+ *firea = 120;
+ *firer = *colr = 235;
+ *fireg = *colg = 245;
+ *fireb = *colb = 255;
+ *pixel_mode |= PMODE_GLOW | FIRE_ADD;
return 1;
}