Curation round 20: player update, costumes and render, Missing No., the last actives and cards, familiars, Pin, the Frail, Wormwood and the Heretic, Dross to Gehenna, effects and the devil room purchase, champion colours, the quit path, save fields, shared vector helpers
This commit is contained in:
1 parent
ee863e70e6
commit
8dbeb1bc4a
168 files changed
+15682
-2399
No files matched your search
@@ -311,7 +311,7 @@ static void rag_man_headless(Entity_NPC& npc, int heads)
|
||||
if (!npc.HasEntityFlags(FLAG_FEAR | FLAG_SHRINK))
|
||||
{
|
||||
npc.pathfinder.MoveRandomly(STATUS_OBEYED);
|
||||
npc.velocity = vector_scale(npc.velocity, npc_friction_scaled(RAG_MAN_WANDER_DRAG, npc.speedMultiplier));
|
||||
npc.velocity = vector_scale(npc.velocity, timescale_factor(RAG_MAN_WANDER_DRAG, npc.speedMultiplier));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -548,7 +548,7 @@ static void rag_man_head_update(Entity_NPC& npc)
|
||||
Vector steer = vector_add(vector_add(vector_scale(toTarget, speed * HEAD_STEER), npc.velocity),
|
||||
vector_scale(heading, speed * HEAD_STEER));
|
||||
steer = vector_resized(steer, speed);
|
||||
float keep = npc_friction_scaled(RAG_MAN_FRICTION, npc.speedMultiplier);
|
||||
float keep = timescale_factor(RAG_MAN_FRICTION, npc.speedMultiplier);
|
||||
npc.velocity = vector_add(vector_scale(vector_sub(steer, npc.velocity), 1 - keep), npc.velocity);
|
||||
|
||||
constexpr std::string_view ROLLS[] = {"RollLeft", "RollUp", "RollRight"};
|
||||
@@ -617,7 +617,7 @@ static void mega_ball_chase(Entity_NPC& npc)
|
||||
{
|
||||
npc.friction *= BALL_FRICTION;
|
||||
Vector toTarget = vector_sub(npc.CalcTargetPosition(0), npc.pos);
|
||||
npc.velocity = vector_scale(npc.velocity, npc_friction_scaled(BALL_DRAG, npc.speedMultiplier));
|
||||
npc.velocity = vector_scale(npc.velocity, timescale_factor(BALL_DRAG, npc.speedMultiplier));
|
||||
npc_push(npc, vector_scale(vector_normalized(toTarget), BALL_CHASE));
|
||||
npc.mass = MEGA_BALL_MASS;
|
||||
if (npc.v2.y > 0)
|
||||
|
||||
Reference in new issue
Block a user