Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
lengthen flak warning time
Browse files Browse the repository at this point in the history
  • Loading branch information
flux committed Jul 25, 2019
1 parent 206704f commit ec654a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,10 @@ minetest.register_entity("hangglider:glider", {
if not self.warned then -- warning shot
self.warned = 0
hangglider.shot_sound(pos)
minetest.chat_send_player(pname, "Protected area! You will be shot down in two seconds by anti-aircraft guns!")
minetest.chat_send_player(pname, "Protected area! You will be shot down in ten seconds by anti-aircraft guns!")
end
self.warned = self.warned + dtime
if self.warned > 2 then -- shoot down
if self.warned > 10 then -- shoot down
player:set_hp(1)
player:get_inventory():remove_item("main", ItemStack("hangglider:hangglider"))
hangglider.shot_sound(pos)
Expand Down

0 comments on commit ec654a2

Please sign in to comment.