hello
me battle repair bot I found the effects code...
code:
1. Is it true the code?
2. How can I add to the server
me battle repair bot I found the effects code...
code:
Code:
{
return;
}
}
Settings.fastRepair = _loc_108;
if (_loc_66 != null)
{
_loc_147 = _loc_66.getTopMenu();
if (_loc_147 != null)
{
if (_loc_108 > 0)
{
_loc_147.setButtonAccess(SuperActionButton.ACTION_FASTREPAIR, true);
_loc_109 = _loc_147.getButton(SuperActionButton.ACTION_FASTREPAIR);
_loc_109.setCounterVisibility(true);
_loc_109.setCount(_loc_108);
}
else
{
_loc_147.setButtonAccess(SuperActionButton.ACTION_FASTREPAIR, false);
_loc_109 = _loc_147.getButton(SuperActionButton.ACTION_FASTREPAIR);
_loc_109.setCounterVisibility(false);
}
}
}
_loc_9 = this.main.screenManager.map;
if (_loc_9 !=null)
{
_loc_31 = _loc_9.setShipManager();
_loc_10 = _loc_31.getHero();
if (_loc_10 != null)
{
_loc_66.showRadiationWarning(_loc_106);
if (Main.showCross)
{
_loc_66.moveCrosshairs(_loc_5, _loc_6);
}
if (_loc_104 && Hero.repairSkillId != -1)
{
_loc_148 = PatternManager.robotPatterns[Hero.repairSkillId];
if (!this.effectsManager.doesEffectExitsOn(_loc_10, EffectIDList.TECH_BATTLE_REP_BOT_EFFECT))
{
_loc_149 = new BattleRepBotTechEffect(EffectIDlist.TECH_BATTLE_REP_BOT_EFFECT, new EffectPattern(EffectIDList.TECH_BATTLE_REP_BOT_EFFECT, _loc_148.resKey));
this.EffectsManager.addEffect(_loc_149, _loc_10, EffectsManager.NORMAL_EFFECT);
}
}
else
{
this.effectsManager.removeEffectByIdFromEntity(_loc_10, EffectIDList.TECH_BATTLE_REP_BOT_EFFECT);
}
}
}
break;
}
2. How can I add to the server