summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-03 19:45:12 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-03 19:45:12 +0000
commit335b8e9227107182ef1e4c8a707bb604bf9937cc (patch)
tree6176756bb3c5a2ead7c209ab01ea8f20ea7c2fe5 /src/map/script.c
parent676ecb85de15e1cfd2579059da44692e94e8bc11 (diff)
downloadhercules-335b8e9227107182ef1e4c8a707bb604bf9937cc.tar.gz
hercules-335b8e9227107182ef1e4c8a707bb604bf9937cc.tar.bz2
hercules-335b8e9227107182ef1e4c8a707bb604bf9937cc.tar.xz
hercules-335b8e9227107182ef1e4c8a707bb604bf9937cc.zip
- GAHH, I am sick tired of typing TBL_HOMUNCULUS/BL_HOMUNCULUS all over the place. The idea is that the TBL* versions are supposed to be easier to use than the standard structure definition, but using TBL_HOMUNCULUS as an alias to struct homun_data kinda beats the purpose! Renamed them all to TBL_HOM/BL_HOM.
- Fixed using the right-hand weapon's size modifiers regardless of which weapon was being used. - Simplified the ignore-size check by making the Weapon Perfection check be done when specifying the flag, also moved the size-fix property of riding spear-knights to status_calc_pc. - Removed variable hd from status_calc_bl as it's not needed. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8112 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 33bb2e1d9..50ea3963a 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -11642,7 +11642,7 @@ int buildin_rid2name(struct script_state *st){
case BL_PET:
push_str(st->stack,C_CONSTSTR,((struct pet_data *)bl)->name);
break;
- case BL_HOMUNCULUS:
+ case BL_HOM:
push_str(st->stack,C_CONSTSTR,((struct homun_data *)bl)->master->homunculus.name);
break;
default:
@@ -12067,8 +12067,8 @@ int buildin_unittalk(struct script_state *st)
case BL_NPC:
memcpy(message, ((TBL_NPC *)bl)->name, NAME_LENGTH);
break;
- case BL_HOMUNCULUS:
- memcpy(message, ((TBL_HOMUNCULUS *)bl)->master->homunculus.name, NAME_LENGTH);
+ case BL_HOM:
+ memcpy(message, ((TBL_HOM *)bl)->master->homunculus.name, NAME_LENGTH);
break;
case BL_PET:
memcpy(message, ((TBL_PET *)bl)->name, NAME_LENGTH);
@@ -12114,8 +12114,8 @@ int buildin_unitdeadsit(struct script_state *st){
case BL_NPC:
((TBL_NPC *)bl)->vd->dead_sit = action;
break;
- case BL_HOMUNCULUS:
- ((TBL_HOMUNCULUS *)bl)->vd->dead_sit = action;
+ case BL_HOM:
+ ((TBL_HOM *)bl)->vd->dead_sit = action;
break;
case BL_PET:
((TBL_PET *)bl)->vd.dead_sit = action;