3 override void CreateActionComponent()
20 override void CreateConditionComponents()
28 if( !target )
return false;
35 if(
Class.CastTo(building, target.GetObject()) )
37 int doorIndex = building.GetDoorIndex(target.GetComponentIndex());
38 if ( doorIndex != -1 )
39 return building.IsDoorLocked(doorIndex);
48 if (
Class.CastTo(building, target.GetObject()) )
50 int doorIndex = building.GetDoorIndex(target.GetComponentIndex());
51 if ( doorIndex != -1 )
53 building.UnlockDoor(doorIndex);
58 override void OnFinishProgressServer(
ActionData action_data )
60 UnlockDoor(action_data.m_Target);
67 float skillLevel = action_data.m_Player.GetSoftSkillsManager().GetSpecialtyLevel();
68 float appliedDamage = 5 + 2*skillLevel;
69 MiscGameplayFunctions.DealAbsoluteDmg(action_data.m_MainItem, appliedDamage);