Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Commit

Permalink
added new Humanlike mode for the ability framework
Browse files Browse the repository at this point in the history
  • Loading branch information
Taranchuk committed Apr 24, 2022
1 parent d97363a commit e233622
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Binary file modified 1.3/Assemblies/VFECore.dll
Binary file not shown.
6 changes: 5 additions & 1 deletion Source/VFECore/Abilities/AbilityDef.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ public override void PostLoad()
case AbilityTargetingMode.Pawn:
this.targetingParameters.canTargetPawns = this.targetingParameters.canTargetHumans = this.targetingParameters.canTargetMechs = this.targetingParameters.canTargetAnimals = true;
break;
case AbilityTargetingMode.Humanlike:
this.targetingParameters.canTargetPawns = this.targetingParameters.canTargetHumans = true;
break;
default:
throw new ArgumentOutOfRangeException();
}
Expand Down Expand Up @@ -157,6 +160,7 @@ public enum AbilityTargetingMode : byte
Self,
Location,
Thing,
Pawn
Pawn,
Humanlike
}
}
1 change: 1 addition & 0 deletions Source/VFECore/Abilities/Command_Ability.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public override void GizmoUpdateOnMouseover()
case AbilityTargetingMode.Location:
case AbilityTargetingMode.Thing:
case AbilityTargetingMode.Pawn:
case AbilityTargetingMode.Humanlike:
radius = this.ability.GetRangeForPawn();
break;
default:
Expand Down

0 comments on commit e233622

Please sign in to comment.