Issue information

Issue ID
#8088
Status
Working as Intended
Severity
None
Started
Angelmelody
Mar 14, 2014 19:39
Last Post
Angelmelody
Mar 15, 2014 18:28
Confirmation
N/A

Angelmelody - Mar 14, 2014 19:39

mob_skill_db.txt and mob_skill_db2.txt


4: added for all mobs.

it should be

3: added for all mobs.

Mysterious - Mar 15, 2014 16:58

I spoke with Haruna and he told me that it is intended. [quote]
[color=rgb(153,153,153)][font=LucidaGrande][size=3][11:31:30] [/size][/font][/color][color=rgb(85,85,85)][font=LucidaGrande][size=3][color=rgb(91,158,76)]<&Haruna>[/color] it uses bit masks[/size][/font][/color][color=rgb(0,0,0)][font=LucidaGrande][size=3]

[indent=1.65][color=rgb(153,153,153)][11:31:37] [/color][color=rgb(85,85,85)][color=rgb(91,158,76)]<&Haruna>[/color] so 4 is correct[/color][/indent][/size][/font][/color]
[/quote]

Angelmelody - Mar 15, 2014 17:29

[quote name="Mysterious" timestamp="1394902723"]
I spoke with Haruna and he told me that it is intended.[quote]
[color=#999999][font=LucidaGrande][size=3][11:31:30] [/size][/font][/color][color=#555555][font=LucidaGrande][size=3][color=#5b9e4c]<&Haruna>[/color] it uses bit masks[/size][/font][/color]

[indent=1]65][color=#999999][11:31:37] [/color][color=#555555][color=#5b9e4c]<&Haruna>[/color] so 4 is correct[/color][/indent]
[/quote][/quote]

if it was set to 4 will continue the loop[code=auto:0] for (i = 1; i < MAX_MOB_DB; i++) { if (mob->db_data[i] == NULL) continue; if (mob->db_data[i]->status.mode&MD_BOSS) { if (!(mob_id&2)) //Skill not for bosses continue; } else if (!(mob_id&1)) //Skill not for normal enemies. continue; ARR_FIND( 0, MAX_MOBSKILL, j, mob->db_data[i]->skill[j].skill_id == 0 ); if(j==MAX_MOBSKILL) continue; memcpy (&mob->db_data[i]->skill[j], ms, sizeof(struct mob_skill)); mob->db_data[i]->maxskill=j+1; } [/code]

malufett - Mar 15, 2014 18:08

[quote]
if it was set to 4 will continue the loop[/quote]
yes it should continue loop so that 'added for all mobs' is true and if was set as 3 it will be 'not added for all mobs'

:meow:

Angelmelody - Mar 15, 2014 18:28

[quote name="malufett" timestamp="1394906931"][quote]



if it was set to 4 will continue the loop[/quote]yes it should continue loop so that 'added for all mobs' is true and if was set as 3 it will be 'not added for all mobs'

:meow:[/quote]

Sorry, the word continue what I mean was continue statement which skip the rest of the code in the current loop.

if set to 4, skill won't be added to any mob

This post has been edited by Angelmelody on Mar 15, 2014 18:40