コード例 #1
0
ファイル: MoveChangeEvent.cs プロジェクト: PMDCollab/PMDC
        public override void Apply(GameEventOwner owner, Character character, int[] moveIndices)
        {
            SlotState statusState = ((StatusEffect)owner).StatusStates.GetWithDefault <SlotState>();

            statusState.Slot = moveIndices[statusState.Slot];
            if (statusState.Slot == -1)
            {
                character.SilentRemoveStatus(((StatusEffect)owner).ID);
            }
        }
コード例 #2
0
ファイル: StatusState.cs プロジェクト: PMDCollab/PMDC
 protected SlotState(SlotState other)
 {
     Slot = other.Slot;
 }