Skip to content

Commit

Permalink
适配 rAthena 官方截止至 8cec8ce 提交中做出的调整
Browse files Browse the repository at this point in the history
  • Loading branch information
CairoLee committed May 25, 2024
2 parents 0122d3f + 8cec8ce commit 0985c7f
Show file tree
Hide file tree
Showing 92 changed files with 154,007 additions and 68,347 deletions.
9 changes: 9 additions & 0 deletions 3rdparty/libconfig/scanner.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

#line 4 "scanner.c"

#ifdef _MSC_VER
#pragma warning( push )
#pragma warning( disable : 4267 )
#endif

#define YY_INT_ALIGNED short int

/* A lexical scanner generated by flex */
Expand Down Expand Up @@ -2365,3 +2370,7 @@ void libconfig_yyfree (void * ptr , yyscan_t yyscanner)
#define YYTABLES_NAME "yytables"

#line 192 "scanner.l"

#ifdef _MSC_VER
#pragma warning( pop )
#endif
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ option( ENABLE_WEB_SERVER "Build web-server (default=ON)" ON )
#
TEST_BIG_ENDIAN( BIG_ENDIAN )
if( NOT DEFINED BIG_ENDIAN )
message( WARNING "unable to determine endianess, only LITTLE ENDIAN is supported" )
message( WARNING "unable to determine endianness, only LITTLE ENDIAN is supported" )
elseif( BIG_ENDIAN )
message( FATAL_ERROR "bigendian is not supported" )
endif()
Expand Down
6 changes: 6 additions & 0 deletions conf/battle/items.conf
Original file line number Diff line number Diff line change
Expand Up @@ -191,3 +191,9 @@ min_shop_buy: 1
// 普通商店商品的最低售价
// Officially items can be sold for 0 Zeny
min_shop_sell: 0

// Should items that reduce damage from element/race count all monster damage as physical? (Note 1)
// Officially "Asprika" (god item) reduces all monsters damage rather than just physical damage
// Shaman Hat on the other hand doesn't reduce monster damage at all (reduces magical damage in PVP)
// This only affects items with bonus3 bSubEle and bonus3 bSubRace.
cardfix_monster_physical: yes
1 change: 1 addition & 0 deletions conf/groups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ Body:
bypass_stat_onclone: true
bypass_max_stat: true
macro_register: true
trade_unconditional: true
#all_permission: true

Footer:
Expand Down
3 changes: 3 additions & 0 deletions conf/maps_athena.conf
Original file line number Diff line number Diff line change
Expand Up @@ -1610,5 +1610,8 @@ map: 3@vrpop
// Depth biosphere 2nd floor
map: bl_depth2

// Fantasy Series Sonic Collaboration - Dr. Eggman's Secret Base
map: 1@vrsn

//------------------------- Clone Maps ---------------------------
//------------------------- Extra Maps ---------------------------
2 changes: 2 additions & 0 deletions db/const.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ Body:
Value: 4
- Name: JUMPINGCLAN
Value: 5
- Name: REPUTATION_EP18
Value: 3

Footer:
Imports:
Expand Down
Binary file modified db/map_cache.dat
Binary file not shown.
1 change: 1 addition & 0 deletions db/map_index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1240,6 +1240,7 @@ t_garden
2@vrpop
3@vrpop
bl_depth2
1@vrsn

//======================================================================================
// - Other/Extra maps -
Expand Down
11 changes: 1 addition & 10 deletions db/pre-re/item_db_equip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20587,16 +20587,7 @@ Body:
EquipLevelMin: 94
Script: |
bonus bMdef,5;
bonus3 bSubEle,Ele_Neutral,30,BF_SHORT;
bonus3 bSubEle,Ele_Water,30,BF_SHORT;
bonus3 bSubEle,Ele_Earth,30,BF_SHORT;
bonus3 bSubEle,Ele_Fire,30,BF_SHORT;
bonus3 bSubEle,Ele_Wind,30,BF_SHORT;
bonus3 bSubEle,Ele_Poison,30,BF_SHORT;
bonus3 bSubEle,Ele_Holy,30,BF_SHORT;
bonus3 bSubEle,Ele_Dark,30,BF_SHORT;
bonus3 bSubEle,Ele_Ghost,30,BF_SHORT;
bonus3 bSubEle,Ele_Undead,30,BF_SHORT;
bonus3 bSubEle,Ele_All,30,BF_WEAPON;
bonus bFlee,30;
skill "AL_TELEPORT",1;
bonus bUnbreakableGarment;
Expand Down
28 changes: 8 additions & 20 deletions db/pre-re/skill_db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4408,7 +4408,6 @@ Body:
TargetType: Ground
DamageFlags:
Splash: true
IgnoreFlee: true
Flags:
IsTrap: true
AlterRangeResearchTrap: true
Expand Down Expand Up @@ -6461,6 +6460,7 @@ Body:
TargetType: Attack
DamageFlags:
IgnoreAtkCard: true
IgnoreDefense: true
IgnoreFlee: true
Flags:
IgnoreAutoGuard: true
Expand Down Expand Up @@ -9641,7 +9641,7 @@ Body:
Hit: Single
HitCount: 1
Duration1: 300000
Duration2: 15000
Duration2: 10000
Requires:
SpCost: 200
Status: Berserk
Expand Down Expand Up @@ -10233,17 +10233,7 @@ Body:
Time: 55000
- Level: 5
Time: 60000
Duration2:
- Level: 1
Time: 20000
- Level: 2
Time: 30000
- Level: 3
Time: 40000
- Level: 4
Time: 50000
- Level: 5
Time: 60000
Duration2: 60000
Requires:
SpCost:
- Level: 1
Expand Down Expand Up @@ -13866,8 +13856,6 @@ Body:
Description: Chain Action
MaxLevel: 10
Type: Weapon
DamageFlags:
Critical: true
Range: -9
Hit: Multi_Hit
HitCount: 2
Expand Down Expand Up @@ -32467,9 +32455,9 @@ Body:
Hit: Single
HitCount: 1
Duration1: 300000
Duration2: 15000
Duration2: 10000
Requires:
SpCost: 100
SpCost: 200
Status: Berserk
- Id: 8207
Name: MA_DOUBLE
Expand Down Expand Up @@ -32648,7 +32636,6 @@ Body:
TargetType: Ground
DamageFlags:
Splash: true
IgnoreFlee: true
Flags:
IsTrap: true
AlterRangeResearchTrap: true
Expand Down Expand Up @@ -33068,9 +33055,10 @@ Body:
Type: Weapon
TargetType: Attack
Range: 1
Hit: Multi_Hit
HitCount: 3
Hit: Single
HitCount: 1
Element: Weapon
CastCancel: true
CastTime: 1000
AfterCastActDelay: 2000
Duration2: 5000
Expand Down
12 changes: 12 additions & 0 deletions db/pre-re/status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ Body:
- Status: Poison
DurationLookup: NPC_POISON
CalcFlags:
Def: true
Def2: true
Regen: true
Opt2:
Expand Down Expand Up @@ -252,6 +253,7 @@ Body:
- Status: Dpoison
DurationLookup: NPC_POISON
CalcFlags:
Def: true
Def2: true
Regen: true
Opt2:
Expand Down Expand Up @@ -1098,6 +1100,7 @@ Body:
Icon: EFST_GROUNDMAGIC
DurationLookup: SA_VOLCANO
CalcFlags:
Batk: true
Watk: true
Flags:
NoSave: true
Expand All @@ -1121,6 +1124,10 @@ Body:
NoClearance: true
- Status: Watk_Element
DurationLookup: MS_MAGNUM
Flags:
NoSave: true
EndOnStart:
Watk_Element: true
- Status: Armor
DurationLookup: NPC_DEFENDER
- Status: Armor_Element_Water
Expand Down Expand Up @@ -2712,6 +2719,7 @@ Body:
CalcFlags:
Flee: true
Flags:
BlEffect: true
NoDispell: true
NoBanishingBuster: true
NoClearance: true
Expand All @@ -2720,6 +2728,7 @@ Body:
CalcFlags:
Watk: true
Flags:
BlEffect: true
NoDispell: true
NoBanishingBuster: true
NoClearance: true
Expand All @@ -2728,6 +2737,7 @@ Body:
CalcFlags:
MaxHp: true
Flags:
BlEffect: true
NoDispell: true
NoBanishingBuster: true
NoClearance: true
Expand All @@ -2736,6 +2746,7 @@ Body:
CalcFlags:
MaxSp: true
Flags:
BlEffect: true
NoDispell: true
NoBanishingBuster: true
NoClearance: true
Expand All @@ -2744,6 +2755,7 @@ Body:
CalcFlags:
Hit: true
Flags:
BlEffect: true
NoDispell: true
NoBanishingBuster: true
NoClearance: true
Expand Down
6 changes: 3 additions & 3 deletions db/re/achievement_db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2049,21 +2049,21 @@ Body:
- Id: 200032
Group: Goal_Level
Name: The start of another adventure!
Condition: " BaseLevel == 100 "
Condition: " BaseLevel >= 100 "
Rewards:
Item: Rebeginer_Box_100
Score: 10
- Id: 200033
Group: Goal_Level
Name: With a new mind!(1)
Condition: " BaseLevel == 170 && (Class >= JOB_RUNE_KNIGHT && Class <= JOB_GUILLOTINE_CROSS_T) "
Condition: " BaseLevel >= 170 && (Class >= JOB_RUNE_KNIGHT && Class <= JOB_GUILLOTINE_CROSS_T) "
Rewards:
Item: Costume_Ticket
Score: 50
- Id: 200034
Group: Goal_Level
Name: With a new mind!(2)
Condition: " BaseLevel == 170 && (Class >= JOB_ROYAL_GUARD && Class <= JOB_SHADOW_CHASER_T) "
Condition: " BaseLevel >= 170 && (Class >= JOB_ROYAL_GUARD && Class <= JOB_SHADOW_CHASER_T) "
Rewards:
Item: Costume_Ticket
Score: 50
Expand Down
1 change: 1 addition & 0 deletions db/re/barters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,4 @@ Footer:
- Path: npc/re/merchants/barters/enchan_illusion_dungeons.yml
- Path: npc/re/merchants/barters/quests_exp_175.yml
- Path: npc/re/merchants/barters/mysterious_cookie_shop.yml
- Path: npc/re/merchants/barters/quests_18_1.yml
Loading

0 comments on commit 0985c7f

Please sign in to comment.