16 lines
540 B
Lua
16 lines
540 B
Lua
-----------------------------------
|
|
-- Old setting from settings.lua: HOMEPOINT_HEAL
|
|
-- Set if you want Home Points to heal you like in single-player Final Fantasy games.
|
|
-----------------------------------
|
|
require('modules/module_utils')
|
|
require('scripts/globals/homepoint')
|
|
-----------------------------------
|
|
local m = Module:new('homepoint_heal')
|
|
|
|
m:addOverride('xi.homepoint.onTrigger', function(player, csid, index)
|
|
player:addHP(player:getMaxHP())
|
|
player:addMP(player:getMaxMP())
|
|
super(player, csid, index)
|
|
end)
|
|
|
|
return m
|