private void InitializeAssemblies() { BoosterAssembly = new BoosterAssembly(this); HangarAssembly = new PlayerHangarAssembly(this); MovementAssembly = new PlayerMovementAssembly(this); DroneFormationAssembly = new PlayerDroneFormationAssembly(this); AttackAssembly = new PlayerAttackAssembly(this); SpecialItemsAssembly = new PlayerSpecialItemsAssembly(this); EffectsAssembly = new PlayerEffectsAssembly(this); AttackTraceAssembly = new AttackTraceAssembly(this); ZoneAssembly = new ZoneAssembly(this); PlayerTechAssembly = new PlayerTechAssembly(this); PlayerAbilityAssembly = new PlayerAbilityAssembly(this); PlayerGroupAssembly = new PlayerGroupAssembly(this); PlayerItemsAssembly = new PlayerItemsAssembly(this); BoosterAssembly.Multiply(BoosterType.DAMAGE, 1.6); BoosterAssembly.Multiply(BoosterType.DAMAGE, 2); BoosterAssembly.Multiply(BoosterType.SHIELD, 1.7); BoosterAssembly.Multiply(BoosterType.SPEED, 1.2); BoosterAssembly.Multiply(BoosterType.HITPOINTS, 1.2); BoosterAssembly.Multiply(BoosterType.HIT_RATE, 0.8); InitializeTimer(); }
public NpcController(int id, string username, Faction faction) : base(id, username, faction) { BoosterAssembly = new BoosterAssembly(this); HangarAssembly = new NpcHangarAssembly(this, Ship.YAMATO, Map.MAP_R_ZONE, new Position(10000, 6000), 1_000_000, 1_000_000); MovementAssembly = new MovementAssembly(this); AttackAssembly = new NpcAttackAssembly(this); EffectsAssembly = new EffectsAssembly(this); AttackTraceAssembly = new AttackTraceAssembly(this); ZoneAssembly = new ZoneAssembly(this); BoosterAssembly.Set(BoosterType.SHIELD_REGNERATION, 0.05); BoosterAssembly.Set(BoosterType.SHIELD_ABSORBATION, 0.5); BoosterAssembly.Set(BoosterType.HITPOINTS_REGENERATION, 0.01); TimerStart(); InitializeTimer(); SpacemapController.For(HangarAssembly.Map.ID).Add(this); }