public static Offense operator *(Offense a, float b) { Offense c = new Offense(); c.gaussDamage = a.gaussDamage * b; c.laserDamage = a.laserDamage * b; c.missileDamage = a.missileDamage * b; return(c); }
public static Offense operator /(Offense a, Offense b) { Offense c = new Offense(); c.gaussDamage = a.gaussDamage / b.gaussDamage; c.laserDamage = a.laserDamage / b.laserDamage; c.missileDamage = a.missileDamage / b.missileDamage; return(c); }