diff options
| author | Bryan Hoyle <starfoxprime@gmail.com> | 2011-08-16 19:18:15 (GMT) |
|---|---|---|
| committer | Bryan Hoyle <starfoxprime@gmail.com> | 2011-08-16 19:18:15 (GMT) |
| commit | 53d2c2d42ff95131351b055af0af5372549062e4 (patch) | |
| tree | 0ed6e4b06c7d4ccac63049c8faa499662bf9ed47 /src/elements | |
| parent | d0291e73bc2698272db8964da148f51610fd7b14 (diff) | |
| download | powder-53d2c2d42ff95131351b055af0af5372549062e4.zip powder-53d2c2d42ff95131351b055af0af5372549062e4.tar.gz | |
GBMB changes
Diffstat (limited to 'src/elements')
| -rw-r--r-- | src/elements/gbmb.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/elements/gbmb.c b/src/elements/gbmb.c index 20582af..f8a461e 100644 --- a/src/elements/gbmb.c +++ b/src/elements/gbmb.c @@ -9,12 +9,15 @@ int update_GBMB(UPDATE_FUNC_ARGS) { (r&0xFF)!=PT_GBMB&& (r&0xFF)!=PT_CLNE&& (r&0xFF)!=PT_PCLN&& + (r&0xFF)!=PT_DMND&& !parts[i].tmp){ - parts[i].life=100; + parts[i].life=60; parts[i].tmp = 1; } } - if(parts[i].life>1) - gravmap[y/CELL][x/CELL] = -20; + if(parts[i].life>20) + gravmap[y/CELL][x/CELL] = 20; + if(parts[i].life<20 && parts[i].life>=1) + gravmap[y/CELL][x/CELL] = -80; return 0; } |
