Skip to content

Commit

Permalink
Address multiple issues identified by nukeykt; partially resolves issue
Browse files Browse the repository at this point in the history
  • Loading branch information
haleyjd committed Mar 6, 2016
1 parent 71cf647 commit a515d59
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions src/strife/p_enemy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,7 @@ void A_ReaverAttack(mobj_t* actor)
{
int t = P_Random();
angle_t shootangle = actor->angle + ((t - P_Random()) << 20);
int damage = (P_Random() & 7) + 1;
int damage = 3*((P_Random() & 7) + 1);

P_LineAttack(actor, shootangle, 2048*FRACUNIT, slope, damage);
++i;
Expand Down Expand Up @@ -2211,7 +2211,7 @@ void A_ProgrammerMelee(mobj_t* actor)
A_FaceTarget(actor);
if(P_CheckMeleeRange(actor))
{
int damage = 8 * (P_Random() % 10 + 1);
int damage = 6 * (P_Random() % 10 + 1);

S_StartSound(actor, sfx_mtalht);
P_DamageMobj(actor->target, actor, actor, damage);
Expand Down Expand Up @@ -3177,7 +3177,10 @@ void A_TeleportBeacon(mobj_t* actor)
// beacon no longer special
actor->flags &= ~MF_SPECIAL;

// set color and flags
// 20160306: set rebel threshold
mobj->threshold = 100;

// set rebel color and flags
mobj->flags |= ((actor->miscdata << MF_TRANSSHIFT) | MF_NODIALOG);
mobj->target = NULL;

Expand Down
4 changes: 2 additions & 2 deletions src/strife/p_inter.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,13 +488,13 @@ void P_TouchSpecialThing(mobj_t* special, mobj_t* toucher)
break;

// missile
case SPR_ROKT:
case SPR_MSSL:
if(!P_GiveAmmo(player, am_missiles, 1))
return;
break;

// box of missiles
case SPR_MSSL:
case SPR_ROKT:
if(!P_GiveAmmo(player, am_missiles, 5))
return;
break;
Expand Down

0 comments on commit a515d59

Please sign in to comment.