Skip to content

Commit 0ad4b6e

Browse files
authored
Merge pull request #10045 from Frankie-hz/familyrename
[cpp, lua, sql] Renames family to species
2 parents 81d042a + e27e7da commit 0ad4b6e

34 files changed

Lines changed: 782 additions & 781 deletions

scripts/actions/mobskills/abrasive_tantara.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
local mobskillObject = {}
1212

1313
mobskillObject.onMobSkillCheck = function(target, mob, skill)
14-
if mob:getAnimationSub() == 5 and mob:getFamily() == xi.mobSpecies.IMP then -- Imps without horn
14+
if mob:getAnimationSub() == 5 and mob:getSpecies() == xi.mobSpecies.IMP then -- Imps without horn
1515
return 1
1616
else
1717
return 0

scripts/actions/mobskills/astral_flow_pet.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ mobskillObject.onMobWeaponSkill = function(mob, target, skill, action)
5757
end
5858

5959
-- Find proper pet skill
60-
local petFamily = pet:getFamily()
60+
local petFamily = pet:getSpecies()
6161
local skillId = xi.mobSkill.SEARING_LIGHT_1 -- Default to Searing Light if not found below
6262

6363
for mobSkillId, petFamilyList in pairs(petAstralFlowAbility) do

scripts/actions/mobskills/crosswind.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ local mobskillObject = {}
88

99
mobskillObject.onMobSkillCheck = function(target, mob, skill)
1010
if
11-
mob:getFamily() == xi.mobSpecies.WARDEN and -- Pandemonium Warden TODO: Set skill lists
11+
mob:getSpecies() == xi.mobSpecies.WARDEN and -- Pandemonium Warden TODO: Set skill lists
1212
mob:getModelId() ~= 1746
1313
then
1414
return 1

scripts/actions/mobskills/deafening_tantara.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
local mobskillObject = {}
1212

1313
mobskillObject.onMobSkillCheck = function(target, mob, skill)
14-
if mob:getAnimationSub() == 5 and mob:getFamily() == xi.mobSpecies.IMP then -- Imps without horn
14+
if mob:getAnimationSub() == 5 and mob:getSpecies() == xi.mobSpecies.IMP then -- Imps without horn
1515
return 1
1616
else
1717
return 0

scripts/actions/mobskills/digest.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ local mobskillObject = {}
1010
mobskillObject.onMobSkillCheck = function(target, mob, skill)
1111
-- TODO: Move to mobskill script?
1212
if
13-
mob:getFamily() == xi.mobSpecies.BOIL or -- Boil
14-
mob:getFamily() == xi.mobSpecies.CLOT or -- Clot
15-
mob:getFamily() == xi.mobSpecies.SCUM or -- Scum
16-
mob:getFamily() == xi.mobSpecies.SLIME -- Slime
13+
mob:getSpecies() == xi.mobSpecies.BOIL or -- Boil
14+
mob:getSpecies() == xi.mobSpecies.CLOT or -- Clot
15+
mob:getSpecies() == xi.mobSpecies.SCUM or -- Scum
16+
mob:getSpecies() == xi.mobSpecies.SLIME -- Slime
1717
then -- Slime family
1818
if mob:checkDistance(target) < 3 then -- Don't use it if he is on his target.
1919
return 1

scripts/actions/mobskills/frenetic_rip.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ local mobskillObject = {}
99
mobskillObject.onMobSkillCheck = function(target, mob, skill)
1010
if
1111
mob:getAnimationSub() == 4 and
12-
mob:getFamily() == xi.mobSpecies.HORNED_IMP
12+
mob:getSpecies() == xi.mobSpecies.HORNED_IMP
1313
then
1414
return 1
1515
else

scripts/actions/mobskills/stifling_tantara.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
local mobskillObject = {}
99

1010
mobskillObject.onMobSkillCheck = function(target, mob, skill)
11-
if mob:getAnimationSub() == 5 and mob:getFamily() == xi.mobSpecies.IMP then -- Imps without horn
11+
if mob:getAnimationSub() == 5 and mob:getSpecies() == xi.mobSpecies.IMP then -- Imps without horn
1212
return 1
1313
else
1414
return 0

scripts/actions/spells/black/meteor.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ spellObject.onSpellCast = function(caster, target, spell)
3232
-- TODO: Account for all mitigation sources.
3333
-- TODO: Account for rage.
3434
damage = caster:getMainLvl() * 15.5
35-
elseif caster:getFamily() == xi.mobSpecies.PROMATHIA then -- Promathia family
35+
elseif caster:getSpecies() == xi.mobSpecies.PROMATHIA then -- Promathia family
3636
damage = caster:getMainLvl() * 7
3737
else
3838
damage = ((100 + caster:getMod(xi.mod.MATT)) / (100 + target:getMod(xi.mod.MDEF))) * (caster:getStat(xi.mod.INT) + (caster:getMaxSkillLevel(caster:getMainLvl(), xi.job.BLM, xi.skill.ELEMENTAL_MAGIC)) / 6) * 9.4
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-----------------------------------
2-
-- func: getmobspecies <optional MobID>
2+
-- func: getspecies <optional MobID>
33
-- desc: Prints the mob's species ID.
44
-----------------------------------
55
---@type TCommand
@@ -13,7 +13,7 @@ commandObj.cmdprops =
1313

1414
local function error(player, msg)
1515
player:printToPlayer(msg)
16-
player:printToPlayer('!getmobspecies (mob ID)')
16+
player:printToPlayer('!getspecies (mob ID)')
1717
end
1818

1919
local function getSpeciesName(id)
@@ -42,7 +42,7 @@ commandObj.onTrigger = function(player, mobId)
4242
end
4343
end
4444

45-
local speciesId = targ:getFamily()
45+
local speciesId = targ:getSpecies()
4646
player:printToPlayer(string.format('%s %i mob species is %i (%s).', targ:getName(), targ:getID(), speciesId, getSpeciesName(speciesId)))
4747
end
4848

scripts/effects/counterstance.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
local effectObject = {}
77

88
effectObject.onEffectGain = function(target, effect)
9-
if target:isMob() and target:getFamily() == xi.mobSpecies.BUGBEAR then -- Bugbear Family
9+
if target:isMob() and target:getSpecies() == xi.mobSpecies.BUGBEAR then -- Bugbear Family
1010
effect:addMod(xi.mod.ATTP, 15)
1111
end
1212

0 commit comments

Comments
 (0)