Commit Graph

3335 Commits

Author SHA1 Message Date
novgorodschi catalin 4407fdd8df Fix level 1 main building conquest
Fix level 1 main building conquest
2026-07-15 08:20:55 +03:00
novgorodschi catalin 0f4f575a5c Add items for new tribes (temporary)
Add items for new tribes (temporary)
2026-07-15 08:07:38 +03:00
novgorodschi catalin 28c0bb5065 Fix Huns Command Center Conquest + Fix hero on Huns attack lost + Add NEW TRIBE HERO ITEMS
Fix Huns Command Center Conquest + Fix hero on Huns attack lost + Add NEW TRIBE HERO ITEMS
2026-07-15 07:54:07 +03:00
novgorodschi catalin ef52bddf9a New Register Page With 3 Step Wizard
New Register Page With 3 Step Wizard
2026-07-14 14:49:23 +03:00
novgorodschi catalin aa689ccc4a Add translate for NEW TRIBE in romanian
Add translate for NEW TRIBE in romanian
2026-07-14 14:31:51 +03:00
novgorodschi catalin 47a740308e FIX WALL NAMES FOR QUEST NEW TRIBE
FIX WALL NAMES FOR QUEST NEW TRIBE
2026-07-14 14:28:27 +03:00
novgorodschi catalin b34bb62e5b Fix Settler Quest for NEW TRIBE
Fix Settler Quest for NEW TRIBE
2026-07-14 14:22:22 +03:00
novgorodschi catalin 089d1df0ff Fix 3 bugs (spy dont die, hero error battle report and hospital cost)
1. Spies — real bug, found. In calculateBattle, the block that calculates the attack power of spies had the hardcoded condition if ($i == 4 || $i == 14 || $i == 23 || $i == 44). Scouts of new tribes (52/64/74/82) did not enter the branch → attack power 0, so they all died no matter how many there were. Now the condition is in_array($i, $unitsbytype['scout']). With this, all four lists in Battle (cavalry, catapults, rams, scouts on attack + scouts on defense) are derived from unitsbytype.
2. Defender hero. I rebuilt the report CSV with dummy values ​​and confirmed that the indexes in Notice/1.tpl are correct (272 = hero present, 273 = hero dead) — so the problem was that $deadhero was ending up as 0 in the report, even though deadherodef was 1 in the battle result (that's why the hero actually died in the DB). Now $deadhero is taken directly from the battle result ($battlepart['deadherodef']), with $owndead['hero'] only as a fallback.
3. "Free" healing. The code called modifyResource(..., mode 0) exactly like training, so the resources were low — but at 100x speed and full storage (8M/8M in your captures) the difference is instantly invisible. I did find a real bug in this area though: modifyResource caps at 0 instead of failing, so if you don't have resources you heal for free. Now procHeal checks the stock and, if there are insufficient resources, automatically reduces the quantity to what you can afford (or cancels).
2026-07-14 14:03:31 +03:00
novgorodschi catalin 138ab1a91c Add image for new tribes in profile
Add image for new tribes in profile
2026-07-14 12:23:14 +03:00
novgorodschi catalin 13d3244e28 Add 4 tribes for addUser Admin CP
Add 4 tribes for addUser Admin CP
2026-07-14 11:07:26 +03:00
novgorodschi catalin 585fe3af5a Fix CSS TOP 10
Fix CSS TOP 10
2026-07-14 10:54:09 +03:00
novgorodschi catalin 25c8925ef6 NEW TRIBES ENHANCEMENT (Huns, Egipteans, Spartans & Vikings) #327
NEW TRIBES ENHANCEMENT (Huns, Egipteans, Spartans & Vikings) #327

Please be advised, is not fully tested so if you activate on install maybe is not fully working
2026-07-14 09:25:26 +03:00
Catalin Novgorodschi 60a2d3b206 Fix cage and animal release for hero T4
Fix cage and animal release for hero T4
2026-07-10 13:35:30 +03:00
novgorodschi catalin 77a004d441 Add Hero T4 Item Description
Add Hero T4 Item Description
2026-07-10 10:48:20 +03:00
novgorodschi catalin 72af9eb7a3 Fix T4 hero Adventure & Auction by tribe
Fix T4 hero Adventure & Auction by tribe
2026-07-10 09:24:08 +03:00
novgorodschi catalin 3c99623a33 Add T4 Hero System (configurable on install)
Add T4 Hero System (configurable on install with TRUE/FALS) part of #285

-Adventures
-Merchants
-Equipment
2026-07-10 09:15:42 +03:00
Catalin Novgorodschi ed325b6d99 Create SECURITY.md for security policy
Added a security policy document outlining supported versions and vulnerability reporting.
2026-07-07 08:04:31 +03:00
novgorodschi catalin c57122b5da Restore commit
Restore commit
2026-07-03 15:07:42 +03:00
novgorodschi catalin d8ff747ca1 Fix Milestone 1000 pop (invalidate cache for count pop)
Fix Milestone 1000 pop (invalidate cache for count pop)
2026-07-03 15:00:36 +03:00
novgorodschi catalin 8eeee03ca9 Fix (vulnerability) HTTP_HOST
Fix vulnerability (HTTP_HOST)
2026-07-03 14:30:31 +03:00
novgorodschi catalin 575a0f9e57 Remove Monsters from acp
Remove Monsters from acp
2026-07-03 14:22:44 +03:00
novgorodschi catalin 4bd3079c97 Add some translation file
Add some translation file
2026-07-03 14:15:19 +03:00
novgorodschi catalin 367421f278 Remove monster units
Remove monster units
2026-07-03 13:10:26 +03:00
novgorodschi catalin bb6cdd2762 Remove Monsters
Remove Monsters
2026-07-03 11:42:19 +03:00
novgorodschi catalin 375422c132 Fix (vulnerability) Stored Cross-Site Scripting (XSS) in Admin Mass Message Tool
Fix (vulnerability) Stored Cross-Site Scripting (XSS) in Admin Mass Message Tool
2026-07-03 10:48:21 +03:00
novgorodschi catalin cba3ce80cc Fix Open Redirect via Unvalidated HTTP_REFERER Header in Admin Panel After Login and Admin Actions
Open Redirect via Unvalidated HTTP_REFERER Header in Admin Panel After Login and Admin Actions
2026-07-03 10:34:30 +03:00
novgorodschi catalin 3c401e46f7 Email Header Injection in Invite Feature via Unsanitized POST Parameters
Email Header Injection in Invite Feature via Unsanitized POST Parameters

Thanks @cybershubham06
2026-07-03 10:18:26 +03:00
novgorodschi catalin 5f005e1d56 Fix forgotten password vulnerability
Fix forgotten password vulnerability
2026-07-03 10:07:38 +03:00
novgorodschi catalin b24033f19a Fix WW in statistics
Fix WW in statistics
2026-07-03 10:00:53 +03:00
novgorodschi catalin 26ed89b3fa Fix translate in statistiks translate
Fix translate in statistiks translate
2026-07-03 09:57:26 +03:00
novgorodschi catalin 6e94898470 Update credits
Update credits
2026-07-03 08:25:43 +03:00
novgorodschi catalin e9e5c0e831 Server Medal Reset Timer in NEW FUINCTION SYSTEM
Server Medal Reset Timer in NEW FUINCTION SYSTEM
2026-07-02 10:17:17 +03:00
Ferywir 1eb85f383c fix(farmlist): recalculate distance when editing a raid-list target [#319] (#325) 2026-07-01 16:47:34 +03:00
Ferywir d791958702 fix(admin): read config template from the version-controlled copy [#322] (#324) 2026-07-01 16:15:08 +03:00
Ferywir eee3d6f355 fix(combat): match building type by 't' suffix in Battle::getTypeLevel [#294] (#323) 2026-07-01 16:13:57 +03:00
novgorodschi catalin c50239442e Milestones Translate
Milestones Translate
2026-07-01 15:01:40 +03:00
novgorodschi catalin 99edc74da9 Milestone added in separate TAB in Statistics
Milestone added in separate TAB in Statistics
2026-07-01 14:58:12 +03:00
novgorodschi catalin 01f1965707 General Some Only for MH/ADMIN
General Some Only for MH/ADMIN
2026-07-01 12:49:56 +03:00
novgorodschi catalin 40e5942c25 Fix milestone onmouseover and add 8th milestone
Fix milestone onmouseover and add 8th milestone
2026-07-01 11:50:04 +03:00
novgorodschi catalin 0edb95203d Added Milestone On Install
Added Milestone On Install
2026-07-01 11:05:44 +03:00
novgorodschi catalin f484bb04d6 Add credits
Add credits
2026-07-01 07:59:05 +03:00
Ferywir 06d1523d9d fix(combat): gate Brewery attack bonus on an active Mead-Festival [#294] (#321)
The Brewery (building 35, Teuton-only) grants a +1% attack bonus per level
to the whole empire, but only while a Mead-Festival is running (72h), and the
building is capital-only. The attack-bonus block in calculateBattle() ignored
both rules: it read the Brewery level from $AttackerWref (the *launching*
village, which usually has no Brewery) and applied the bonus purely on the
building level, with no festival check.

As a result the bonus never reacted to the festival being started or expired:
attacks with and without an active festival produced identical losses, so the
army appeared unaffected by the festival (issue #294). Depending on whether the
attack was launched from the capital, the bonus was either permanently on or
permanently off, but never gated by the festival.

Read the Brewery level from the attacker's capital and gate the bonus on the
festival being active, mirroring the catapult-randomization gate in Units.php
and the chief-penalty gate in Automation.php. The simulator passes
AttackerID = 0, so it keeps a 0 bonus exactly as before.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 15:06:44 +03:00
novgorodschi catalin 3af041df8c Fix issue #320
Fix issue #320 - now you can delete village
2026-06-30 14:29:13 +03:00
novgorodschi catalin cc3ed8d64c Remove unused code
Remove unused code
2026-06-30 13:09:13 +03:00
novgorodschi catalin 07d942d009 Fix edit user
Fix edit user
2026-06-30 12:12:13 +03:00
novgorodschi catalin e66185937c fix struct, forgot an ,
fix struct, forgot an ,
2026-06-30 11:45:34 +03:00
novgorodschi catalin 97d6b7650c Change capital add index
Change capital add index
2026-06-30 10:32:01 +03:00
novgorodschi catalin c62fbc31ab Close php ?>
Close php ?>
2026-06-30 09:24:38 +03:00
Ferywir 12badfa84b fix(troops): apply Tournament Square bonus only beyond the threshold [#304] (#317)
procDistanceTime() multiplied the whole travel distance by the Tournament
Square speed factor as soon as the distance reached TS_THRESHOLD. That
made the trip time jump down at the threshold, so a target just past it
arrived dramatically sooner than a nearer one (e.g. a village 41 tiles
away raided faster than one 18 tiles away).

In T3.6 the Tournament Square only speeds up the part of the journey
beyond the threshold: the first TS_THRESHOLD tiles are walked at base
speed and the remainder at the boosted speed. Split the computation
accordingly so travel time stays monotonic with distance while still
rewarding a high-level square.

This is a long-standing bug, unrelated to the Generator refactor (which
only reformatted the same whole-distance multiplication). The same fix is
applied to the duplicate procDistanceTime() in Admin/database.php used by
the admin troop-return helper.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 09:01:16 +03:00
novgorodschi catalin 75b9bc5723 Forgot to upload festival.php
Forgot to upload festival.php fix #294
2026-06-30 08:31:17 +03:00