From dd1b92878ff452f920c2e7a6dc0a3201b068d07f Mon Sep 17 00:00:00 2001 From: HoraK-FDF Date: Thu, 8 Dec 2022 16:41:33 +0000 Subject: Equipment stats --- src/map/pc.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/map/pc.cpp') diff --git a/src/map/pc.cpp b/src/map/pc.cpp index 4357e38..ce421d0 100644 --- a/src/map/pc.cpp +++ b/src/map/pc.cpp @@ -3747,6 +3747,17 @@ int pc_readparam(dumb_ptr bl, SP type) else val = battle_get_stat(type, bl); break; + case SP::STR2: + case SP::AGI2: + case SP::VIT2: + case SP::INT2: + case SP::DEX2: + case SP::LUK2: + if (sd) + val = sd->paramb[sp_to_attr(SP(static_cast(type)-(static_cast(SP::STR2)-static_cast(SP::STR))))] + sd->parame[sp_to_attr(SP(static_cast(type)-(static_cast(SP::STR2)-static_cast(SP::STR))))]; + else + val = battle_get_stat(SP(static_cast(type)-(static_cast(SP::STR2)-static_cast(SP::STR))), bl); // not sure if mobs can have equipment with stats so i only return thier normal stat + break; case SP::SPEED: val = battle_get_speed(bl).count(); break; -- cgit v1.2.3-70-g09d2