If you meant something like "...to change only one line code...", then you can just use mobjinfo[X].y = z, where X is your mobj's MT_* constant, y is the variable you want to modify and z is its new value.
Example: To add anti-gravity to all the player objects, we have to add to MT_PLAYER's...