mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-02 14:37:32 +02:00
Make VOID and BHOL eat stickmen again
Broken by making stickmen heads pass through everything, since the eating happened in try_move, which stickmen no longer use for head movement.
This commit is contained in:
@@ -476,6 +476,19 @@ void STKM_interact(playerst* playerp, int i, int x, int y)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (((r&0xFF)==PT_BHOL || (r&0xFF)==PT_NBHL) && parts[i].type)
|
||||
{
|
||||
if (!legacy_enable)
|
||||
{
|
||||
parts[r>>8].temp = restrict_flt(parts[r>>8].temp+parts[i].temp/2, MIN_TEMP, MAX_TEMP);
|
||||
}
|
||||
kill_part(i);
|
||||
}
|
||||
if (((r&0xFF)==PT_VOID || ((r&0xFF)==PT_PVOD && parts[r>>8].life==10)) && (!parts[r>>8].ctype || (parts[r>>8].ctype==parts[i].type)!=(parts[r>>8].tmp&1)) && parts[i].type)
|
||||
{
|
||||
kill_part(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user