Skip to content

Commit

Permalink
Release v1.4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Suprcheese committed Mar 6, 2017
1 parent 25e986c commit 2108af8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
8 changes: 8 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,11 @@ Version 1.4.5 - October 21, 2016
Reduced "Ion Cannon Ready" spam by allowing multiple cannons to become ready in the same second.
Simplify code now that the StdLib print-force function is available in the base game.


Version 1.4.6 - March 6, 2017
-----------------------------
The ion cannon GUI hotkey now only works when there is at least one cannon in orbit.
Added config option for adjusting how much area Auto-Targeting Stations permanently reveal around themselves.
Reduced "Ion Cannon Ready" spam when firing several ion cannons -- the minimum duration between announces can be found in config.lua.
Renamed custom "on_ion_cannon_fired" event to "on_ion_cannon_targeted", to better reflect that it fires on target designation rather than actual blast impact.
The "on_ion_cannon_targeted" event position is no longer slightly off-center, and now also passes an event.radius variable.
9 changes: 5 additions & 4 deletions Readme.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Orbital Ion Cannon 1.4.5
Orbital Ion Cannon 1.4.6
========================

Version 1.4.5 was released October 21, 2016, was tested using Factorio v0.14.14, and was authored by Supercheese, with contributions from madmaxoft, bNarFProfCrazy, and Danielv123.
Version 1.4.6 was released March 6, 2017, was tested using Factorio v0.14.22, and was authored by Supercheese, with contributions from madmaxoft, bNarFProfCrazy, Danielv123, and Yousei9.

Do you have a large, late-game megabase and wish there were more cool things you could build? Do you wish you could do more with the rockets you launch than just increment a single number? Do you really hate biters? If so, then this mod is for you!
Build a giant ion cannon and launch it into orbit with a rocket, wait for it to charge up, and then you're ready to call down the thunder on those pesky aliens.
Expand Down Expand Up @@ -30,10 +30,10 @@ This mod also has configuration options available in config.lua. Here you may ad

Modding Details:
----------------
This mod implements a custom event, on_ion_cannon_fired, which can function just like other lua events (https://wiki.factorio.com/index.php?title=Lua/Events).
This mod implements a custom event, on_ion_cannon_targeted, which can function just like other lua events (https://wiki.factorio.com/index.php?title=Lua/Events).
In order to use this event in another mod, you should use the following code:

script.on_event(remote.call("orbital_ion_cannon", "on_ion_cannon_fired"), function(event)
script.on_event(remote.call("orbital_ion_cannon", "on_ion_cannon_targeted"), function(event)
...
end)

Expand All @@ -42,6 +42,7 @@ Where the ... can be any code of your choosing. The following variables are avai
event.force The force whose ion cannon is firing
event.player_index The player index of who fired the ion cannon
event.position The position the ion cannon is firing at
event.radius The radius of the ion cannon blast


There is also a remote call that fires the ion cannon:
Expand Down
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Orbital Ion Cannon",
"version": "1.4.5",
"version": "1.4.6",
"factorio_version": "0.14",
"title": "Orbital Ion Cannon",
"author": "Supercheese",
Expand Down

0 comments on commit 2108af8

Please sign in to comment.