mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-01 06:00:15 +02:00
TPT: Now stickmen can shoot plasma. dc01f09f0e
This commit is contained in:
@@ -260,7 +260,10 @@ int Element_STKM::run_stickman(playerst* playerp, UPDATE_FUNC_ARGS) {
|
||||
if (!r && !sim->bmap[(y+ry)/CELL][(x+rx)/CELL])
|
||||
continue;
|
||||
|
||||
if (sim->elements[r&0xFF].Falldown!=0 || sim->elements[r&0xFF].State == ST_GAS || (r&0xFF) == PT_NEUT || (r&0xFF) == PT_PHOT)
|
||||
if (sim->elements[r&0xFF].Falldown!=0 || sim->elements[r&0xFF].State == ST_GAS
|
||||
|| sim->elements[r&0xFF].Properties&TYPE_GAS
|
||||
|| sim->elements[r&0xFF].Properties&TYPE_LIQUID
|
||||
|| (r&0xFF) == PT_NEUT || (r&0xFF) == PT_PHOT)
|
||||
{
|
||||
playerp->elem = r&0xFF; //Current element
|
||||
}
|
||||
|
Reference in New Issue
Block a user