diff options
Diffstat (limited to 'src/elements/emp.c')
| -rw-r--r-- | src/elements/emp.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/elements/emp.c b/src/elements/emp.c index c47c902..201b8e4 100644 --- a/src/elements/emp.c +++ b/src/elements/emp.c @@ -108,3 +108,18 @@ int update_EMP(UPDATE_FUNC_ARGS) { } return 0; } +int graphics_EMP(GRAPHICS_FUNC_ARGS) +{ + *colr = cpart->life*1.5; + *colg = cpart->life*1.5; + *colb = 200-cpart->life; + if (*colr>255) + *colr = 255; + if (*colg>255) + *colg = 255; + if (*colb>255) + *colb = 255; + if (*colb<=0) + *colb = 0; + return 0; +} |
