mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-30 19:29:52 +02:00
Added condition so that EXOT does not automatically replicate WARP to avoid confusion, and changed spawn tmp value to avoid instant copying on spawn.
This commit is contained in:
committed by
Simon Robertshaw
parent
dfb0357382
commit
4e3d87737e
@@ -33,7 +33,7 @@ int update_EXOT(UPDATE_FUNC_ARGS) {
|
||||
}
|
||||
}
|
||||
if (parts[i].tmp>245)
|
||||
if ((r&0xFF)!=PT_EXOT && (r&0xFF)!=PT_BREL && (r&0xFF)!=PT_DMND && (r&0xFF)!=PT_CLNE && (r&0xFF)!=PT_PRTI && (r&0xFF)!=PT_PRTO && (r&0xFF)!=PT_PCLN && (r&0xFF)!=PT_PHOT && (r&0xFF)!=PT_VOID && (r&0xFF)!=PT_NBHL)
|
||||
if ((r&0xFF)!=PT_EXOT && (r&0xFF)!=PT_BREL && (r&0xFF)!=PT_DMND && (r&0xFF)!=PT_CLNE && (r&0xFF)!=PT_PRTI && (r&0xFF)!=PT_PRTO && (r&0xFF)!=PT_PCLN && (r&0xFF)!=PT_PHOT && (r&0xFF)!=PT_VOID && (r&0xFF)!=PT_NBHL && (r&0xFF)!=PT_WARP)
|
||||
create_part(i, x, y, parts[r>>8].type);
|
||||
}
|
||||
parts[i].tmp--;
|
||||
|
@@ -1025,6 +1025,7 @@ inline int create_part(int p, int x, int y, int tv)//the function for creating a
|
||||
break;
|
||||
case PT_EXOT:
|
||||
parts[i].life = 1000;
|
||||
parts[i].tmp = 244;
|
||||
break;
|
||||
case PT_STKM:
|
||||
if (player.spwn==0)
|
||||
|
Reference in New Issue
Block a user