From 0dbdd6726cc1aa4d7e316da0e7a7ad1cc5259727 Mon Sep 17 00:00:00 2001 From: FynnTW Date: Tue, 2 Apr 2024 23:17:09 +0000 Subject: [PATCH] Updated EOP Docs for version: M2TWEOP-3.1.4 --- .../_static/LuaLib/extra/readme_imgui.md.html | 2 +- docs/_static/LuaLib/index.html | 64 +++++++++++++++++-- docs/_static/LuaLib/readme_imgui.md.html | 2 +- 3 files changed, 62 insertions(+), 6 deletions(-) diff --git a/docs/_static/LuaLib/extra/readme_imgui.md.html b/docs/_static/LuaLib/extra/readme_imgui.md.html index d78060ac..5459a3e2 100644 --- a/docs/_static/LuaLib/extra/readme_imgui.md.html +++ b/docs/_static/LuaLib/extra/readme_imgui.md.html @@ -274,7 +274,7 @@

Medieval 2: Total War - Engine Overhaul Project Lua Plugi

Welcome to the EOP Lua Plugin Documentation!


Please note that many of the examples require additional checks and not all functions are fully documented. If you need additional help, we welcome you to join the Discord!

-

Last updated: 2024-04-01 14:12:12

+

Last updated: 2024-04-02 23:16:32

diff --git a/docs/_static/LuaLib/index.html b/docs/_static/LuaLib/index.html index 812cf8d5..65750e1b 100644 --- a/docs/_static/LuaLib/index.html +++ b/docs/_static/LuaLib/index.html @@ -740,6 +740,7 @@

Data Types

  • onChangeTurnNum (turnNumber)
  • onSelectWorldpkgdesc (selectedRecordName, selectedRecordGroup)
  • onfortificationlevelS (siegedSettlement)
  • +
  • onCalculateUnitValue (entry, value)
  • onEndSiege (xCoord, yCoord)
  • onStartSiege (xCoord, yCoord)
  • @@ -1148,7 +1149,7 @@

    Medieval 2: Total War - Engine Overhaul Project Lua Plugi

    Welcome to the EOP Lua Plugin Documentation!


    Please note that many of the examples require additional checks and not all functions are fully documented. If you need additional help, we welcome you to join the Discord!

    -

    Last updated: 2024-04-01 14:12:12

    +

    Last updated: 2024-04-02 23:16:32

    @@ -3105,6 +3106,10 @@

    EOP Events

    Called on specified fortificationlevel in a siege of a settlement. + onCalculateUnitValue (entry, value) + Called when the game calculates the value of a unit. + + onEndSiege (xCoord, yCoord) Called on the completion of the siege (in any way, with any outcome). @@ -9751,7 +9756,7 @@

    Fields:

  • getFort - getFort + getFort @@ -16544,6 +16549,12 @@

    Fields:

    +
  • +
  • onCalculateUnitValue + onCalculateUnitValue + + +
  • onEndSiege onEndSiege @@ -24166,6 +24177,51 @@

    Usage:

    end + +
    + + onCalculateUnitValue (entry, value) +
    +
    +
    + Called when the game calculates the value of a unit. +
    + +

    Parameters:

    +
      +
    • entry + eduEntry + + + +
    • +
    • value + float + + + +
    • +
    + +

    Returns:

    +
      + + float + newValue +
    + + + +

    Usage:

    +
      +
      function onCalculateUnitValue(entry, value)
      +	if entry.eduType = "my_unit" then
      +		return value * 2
      +	end
      +	return value
      +end
      +
    +
    @@ -27749,7 +27805,7 @@

    Fields:

  • getFort - getFort + getFort @@ -29308,7 +29364,7 @@

    Fields:

  • getFort - getFort + getFort diff --git a/docs/_static/LuaLib/readme_imgui.md.html b/docs/_static/LuaLib/readme_imgui.md.html index d78060ac..5459a3e2 100644 --- a/docs/_static/LuaLib/readme_imgui.md.html +++ b/docs/_static/LuaLib/readme_imgui.md.html @@ -274,7 +274,7 @@

    Medieval 2: Total War - Engine Overhaul Project Lua Plugi

    Welcome to the EOP Lua Plugin Documentation!


    Please note that many of the examples require additional checks and not all functions are fully documented. If you need additional help, we welcome you to join the Discord!

    -

    Last updated: 2024-04-01 14:12:12

    +

    Last updated: 2024-04-02 23:16:32