InstantWeapon repeats while its trigger is down (Activate to Deactivate), not when it was pulled this step; AutoWeapon's override of that is gone. FireControl keeps the shot queue in fire-time order (ties by shot id) and Step walks it oldest first. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
24 lines
658 B
C#
24 lines
658 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using MessagePack;
|
|
using Newtonsoft.Json;
|
|
using CultMath;
|
|
using static CultMath.math;
|
|
|
|
[Inspectable, MessagePackObject, JsonObject(MemberSerialization.OptIn), RuntimeInspectable]
|
|
public class AutoWeaponData : InstantWeaponData
|
|
{
|
|
public override Behavior CreateInstance(EquippedItem item)
|
|
{
|
|
return new AutoWeapon(this, item);
|
|
}
|
|
}
|
|
|
|
public class AutoWeapon : InstantWeapon
|
|
{
|
|
|
|
public AutoWeapon(InstantWeaponData data, EquippedItem item) : base(data, item) { }
|
|
public AutoWeapon(InstantWeaponData data, ConsumableItemEffect item) : base(data, item) { }
|
|
}
|
|
|