Curation round 25 (code only): the ultra horsemen and the Beast's background, the Scourge and Polty, the player's last gaps with the frame gate removed, game core, debug and daily, local co-op and player-controlled enemies, TMTRAINER, local versus, the vanilla Lua API, the special-daily fix, shared constants folded (60 duplicates, 10 offline gaps)
This commit is contained in:
1 parent
534339a496
commit
5c89798773
280 files changed
+14904
-5309
No files matched your search
@@ -451,7 +451,7 @@ static void pile_move_pick(Entity_NPC& npc)
|
||||
// A random spot about a center, a fraction of the Pile's reach away.
|
||||
static Vector pile_spot_roll(Vector center)
|
||||
{
|
||||
float angle = random_unit() * RANDOM_HALF_TURN;
|
||||
float angle = random_unit() * PI_ROUGH;
|
||||
angle += angle;
|
||||
float reach = (random_unit() * PILE_SPOT_REACH_SPREAD + PILE_SPOT_REACH_MIN) * PILE_SPOT_REACH;
|
||||
return vector_make(std::cos(angle) * reach + center.x, std::sin(angle) * reach + center.y);
|
||||
|
||||
Reference in new issue
Block a user