3 override void CreateActionComponent()
21 override void CreateConditionComponents()
29 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.CanDoorBeLocked(doorIndex);
48 if (
Class.CastTo(building, target.GetObject()) )
50 int doorIndex = building.GetDoorIndex(target.GetComponentIndex());
51 if ( doorIndex != -1 )
53 building.LockDoor(doorIndex);
58 override void OnFinishProgressServer(
ActionData action_data )
60 LockDoor(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);