File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Browncoats.rte/Devices/Shields/Eruptor Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -206,8 +206,12 @@ function ThreadedUpdateAI(self)
206
206
self .burstUp = nil ;
207
207
self .Ctrl :SetState (Controller .MOVE_UP , true ); -- Don't burst when returning to orbit
208
208
else
209
- if change < - 3 and not self .burstUp then
209
+ if change < - 2.2 and not self .burstUp then
210
210
self .burstUp = math.max (9 - change , 2 ); -- Wait n frames until next burst (lower -> better control)
211
+ if change < - 6 then
212
+ self .Ctrl :SetState (Controller .MOVE_UP , true );
213
+ self .burstUp = nil ;
214
+ end
211
215
elseif change > 20 then
212
216
self .burstUp = nil ;
213
217
self .Ctrl :SetState (Controller .MOVE_DOWN , true );
@@ -275,7 +279,7 @@ function ThreadedUpdateAI(self)
275
279
self .burstUp = self .burstUp - SettingsMan .AIUpdateInterval ;
276
280
if self .burstUp < 0 then
277
281
self .Ctrl :SetState (Controller .MOVE_UP , true );
278
- if self .burstUp < - 16 then
282
+ if self .burstUp < - 8 then
279
283
self .burstUp = nil ;
280
284
end
281
285
end
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ function Create(self)
22
22
self :SetOneHanded (true );
23
23
local rootParent = self :GetRootParent ();
24
24
if IsAHuman (rootParent ) then
25
- if ToAHuman (rootParent ).EquippedItem .UniqueID == self .UniqueID then
25
+ if ToAHuman (rootParent ).EquippedItem and ToAHuman ( rootParent ). EquippedItem .UniqueID == self .UniqueID then
26
26
ToAHuman (rootParent ):UnequipBGArm ();
27
27
self .equippedInMainHand = true ;
28
28
self :SetOneHanded (false );
You can’t perform that action at this time.
0 commit comments