Merge branch 'mapper-ring-box' into 'master'

Ring Box mapper arg

See merge request KartKrew/Kart!1372
This commit is contained in:
James R 2023-08-08 22:18:14 +00:00
commit 14d76a10ec
2 changed files with 3 additions and 1 deletions

View file

@ -114,7 +114,7 @@ void Obj_RandomItemVisuals(mobj_t *mobj)
// the player's cleared out a good portion of the map. // the player's cleared out a good portion of the map.
// //
// Then extraval1 starts ticking up and triggers the transformation from Ringbox to Random Item. // Then extraval1 starts ticking up and triggers the transformation from Ringbox to Random Item.
if (mobj->fuse == 0 && !(mobj->flags & MF_NOCLIPTHING) if (mobj->fuse == 0 && !(mobj->flags & MF_NOCLIPTHING) && !(mobj->flags2 & MF2_AMBUSH)
&& !cv_thunderdome.value && !(modeattacking & ATTACKING_SPB)) && !cv_thunderdome.value && !(modeattacking & ATTACKING_SPB))
{ {
mobj->extravalue1++; mobj->extravalue1++;

View file

@ -13273,6 +13273,8 @@ static boolean P_SetupSpawnedMapThing(mapthing_t *mthing, mobj_t *mobj)
P_SetThingPosition(mobj); P_SetThingPosition(mobj);
} }
} }
if (mthing->args[0] == 1)
mobj->flags2 |= MF2_AMBUSH;
break; break;
} }
case MT_ITEMCAPSULE: case MT_ITEMCAPSULE: