Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   duplicate parameters in ai.obj - is it OK? (https://postpacific.loc-online.com/showthread.php?t=6382)

IVB 08.12.2006 12:53

duplicate parameters in ai.obj - is it OK?
 
Analising ai.obj I found following duplicated parameters:

1. class 1 chamberlain : citizen
Code:

    int WallPrice1_1 1600000
    int WallPrice1_2 1800000
    int WallPrice1_3 2000000
    int WallPrice1_1 1600000
    int WallPrice1_2 1800000
    int WallPrice1_3 2000000
    int WallPrice1_1 1600000
    int WallPrice1_2 1800000
    int WallPrice1_3 2000000
    int dmgzoneprice1_1 3000000
    int dmgzoneprice1_2 4000000
    int dmgzoneprice1_3 5000000
    int dmgzoneprice1_4 6000000
    int dmgzoneprice1_1 3000000
    int dmgzoneprice1_2 4000000
    int dmgzoneprice1_3 5000000
    int dmgzoneprice1_4 6000000

2. class 1 monster_parameter : default_npc
Code:

    int DungeonType 0
    int DungeonTypeAI 0
    string DungeonTypePrivate ""

    int DungeonType 0
    int DungeonTypeAI 0
    string DungeonTypePrivate ""

So I have two questions: Is this mistake of ai.obj developers or this duplication has sense? And can I remove duplicates?

FidoW 08.12.2006 13:04

Quote:

Originally Posted by IVB (Post 73718)
Analising ai.obj I found following duplicated parameters:

1. class 1 chamberlain : citizen
Code:

    int WallPrice1_1 1600000
    int WallPrice1_2 1800000
    int WallPrice1_3 2000000
    int WallPrice1_1 1600000
    int WallPrice1_2 1800000
    int WallPrice1_3 2000000
    int WallPrice1_1 1600000
    int WallPrice1_2 1800000
    int WallPrice1_3 2000000
    int dmgzoneprice1_1 3000000
    int dmgzoneprice1_2 4000000
    int dmgzoneprice1_3 5000000
    int dmgzoneprice1_4 6000000
    int dmgzoneprice1_1 3000000
    int dmgzoneprice1_2 4000000
    int dmgzoneprice1_3 5000000
    int dmgzoneprice1_4 6000000

2. class 1 monster_parameter : default_npc
Code:

    int DungeonType 0
    int DungeonTypeAI 0
    string DungeonTypePrivate ""

    int DungeonType 0
    int DungeonTypeAI 0
    string DungeonTypePrivate ""

So I have two questions: Is this mistake of ai.obj developers or this duplication has sense? And can I remove duplicates?

You can remove duplicates, have no sense declare two times the same parameter, its a mistake.


All times are GMT. The time now is 15:55.