mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 21:54:58 +00:00
A lot of FPS agnosticism, added def lerp
This commit is contained in:
@@ -313,10 +313,10 @@ ItemHandlers::UseInField.add(:ITEMFINDER, proc { |item|
|
||||
offsetY = event.y - $game_player.y
|
||||
if offsetX == 0 && offsetY == 0 # Standing on the item, spin around
|
||||
4.times do
|
||||
pbWait(Graphics.frame_rate * 2 / 10)
|
||||
pbWait(0.2)
|
||||
$game_player.turn_right_90
|
||||
end
|
||||
pbWait(Graphics.frame_rate * 3 / 10)
|
||||
pbWait(0.3)
|
||||
pbMessage(_INTL("The {1}'s indicating something right underfoot!", GameData::Item.get(item).name))
|
||||
else # Item is nearby, face towards it
|
||||
direction = $game_player.direction
|
||||
@@ -331,7 +331,7 @@ ItemHandlers::UseInField.add(:ITEMFINDER, proc { |item|
|
||||
when 6 then $game_player.turn_right
|
||||
when 8 then $game_player.turn_up
|
||||
end
|
||||
pbWait(Graphics.frame_rate * 3 / 10)
|
||||
pbWait(0.3)
|
||||
pbMessage(_INTL("Huh? The {1}'s responding!", GameData::Item.get(item).name) + "\1")
|
||||
pbMessage(_INTL("There's an item buried around here!"))
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user