├── .github
└── FUNDING.yml
├── README.md
├── docs
└── index.html
├── languages
├── index.php
├── stephino-rpg-de_DE.mo
├── stephino-rpg-es_ES.mo
├── stephino-rpg-fr_FR.mo
├── stephino-rpg-it_IT.mo
├── stephino-rpg-pt_BR.mo
├── stephino-rpg-ro_RO.mo
├── stephino-rpg-ru_RU.mo
└── stephino-rpg.pot
├── lib
└── Stephino
│ ├── Rpg.php
│ ├── Rpg
│ ├── About.php
│ ├── Autoloader.php
│ ├── Cache
│ │ ├── Ajax.php
│ │ ├── Game.php
│ │ └── User.php
│ ├── Config.php
│ ├── Config
│ │ ├── Building.php
│ │ ├── Buildings.php
│ │ ├── Cities.php
│ │ ├── City.php
│ │ ├── Core.php
│ │ ├── Government.php
│ │ ├── Governments.php
│ │ ├── Island.php
│ │ ├── IslandStatue.php
│ │ ├── IslandStatues.php
│ │ ├── Islands.php
│ │ ├── Item
│ │ │ ├── Abstract.php
│ │ │ ├── Collection.php
│ │ │ └── Single.php
│ │ ├── Modifier.php
│ │ ├── Modifiers.php
│ │ ├── PremiumModifier.php
│ │ ├── PremiumModifiers.php
│ │ ├── PremiumPackage.php
│ │ ├── PremiumPackages.php
│ │ ├── ResearchArea.php
│ │ ├── ResearchAreas.php
│ │ ├── ResearchField.php
│ │ ├── ResearchFields.php
│ │ ├── Ship.php
│ │ ├── Ships.php
│ │ ├── Trait
│ │ │ ├── Cost.php
│ │ │ ├── Discount.php
│ │ │ ├── Entity.php
│ │ │ ├── Labels.php
│ │ │ ├── Modifier.php
│ │ │ ├── Requirement.php
│ │ │ └── XResourceAbundance.php
│ │ ├── Tutorial.php
│ │ ├── Tutorials.php
│ │ ├── Unit.php
│ │ └── Units.php
│ ├── Db.php
│ ├── Db
│ │ ├── Model.php
│ │ ├── Model
│ │ │ ├── Announcement.php
│ │ │ ├── Buildings.php
│ │ │ ├── Cities.php
│ │ │ ├── Convoys.php
│ │ │ ├── Entities.php
│ │ │ ├── Invoices.php
│ │ │ ├── Islands.php
│ │ │ ├── Messages.php
│ │ │ ├── PremiumModifiers.php
│ │ │ ├── Ptfs.php
│ │ │ ├── Queues.php
│ │ │ ├── ResearchFields.php
│ │ │ ├── Sentries.php
│ │ │ ├── Statistics.php
│ │ │ └── Users.php
│ │ ├── Table.php
│ │ └── Table
│ │ │ ├── Buildings.php
│ │ │ ├── Cities.php
│ │ │ ├── Convoys.php
│ │ │ ├── Entities.php
│ │ │ ├── Islands.php
│ │ │ ├── Messages.php
│ │ │ ├── Ptfs.php
│ │ │ ├── Queues.php
│ │ │ ├── ResearchFields.php
│ │ │ ├── Statistics.php
│ │ │ └── Users.php
│ ├── Log.php
│ ├── Parsedown.php
│ ├── Renderer.php
│ ├── Renderer
│ │ ├── Ajax.php
│ │ ├── Ajax
│ │ │ ├── Action.php
│ │ │ ├── Action
│ │ │ │ ├── Account.php
│ │ │ │ ├── Attack.php
│ │ │ │ ├── Building.php
│ │ │ │ ├── City.php
│ │ │ │ ├── Entity.php
│ │ │ │ ├── Island.php
│ │ │ │ ├── Message.php
│ │ │ │ ├── Premium.php
│ │ │ │ ├── Research.php
│ │ │ │ ├── Sentry.php
│ │ │ │ ├── Settings.php
│ │ │ │ ├── Spy.php
│ │ │ │ ├── Transport.php
│ │ │ │ ├── Tutorial.php
│ │ │ │ └── User.php
│ │ │ ├── Admin.php
│ │ │ ├── Cells.php
│ │ │ ├── Css.php
│ │ │ ├── Dialog.php
│ │ │ ├── Dialog
│ │ │ │ ├── Attack.php
│ │ │ │ ├── Building.php
│ │ │ │ ├── City.php
│ │ │ │ ├── Convoy.php
│ │ │ │ ├── Entity.php
│ │ │ │ ├── Help.php
│ │ │ │ ├── Island.php
│ │ │ │ ├── Messages.php
│ │ │ │ ├── Premium.php
│ │ │ │ ├── Research.php
│ │ │ │ ├── Sentry.php
│ │ │ │ ├── Settings.php
│ │ │ │ ├── Spy.php
│ │ │ │ ├── Transport.php
│ │ │ │ └── User.php
│ │ │ ├── Html.php
│ │ │ ├── Js.php
│ │ │ └── Media.php
│ │ ├── Console.php
│ │ └── Html.php
│ ├── Task
│ │ ├── Cron.php
│ │ ├── Initializer.php
│ │ └── Robot.php
│ ├── Theme.php
│ ├── TimeLapse.php
│ ├── TimeLapse
│ │ ├── Abstract.php
│ │ ├── Convoys.php
│ │ ├── Queues.php
│ │ ├── Resources.php
│ │ └── Support
│ │ │ ├── Entities.php
│ │ │ └── ResearchFields.php
│ ├── Utils
│ │ ├── Config.php
│ │ ├── Db.php
│ │ ├── Folder.php
│ │ ├── Lingo.php
│ │ ├── Math.php
│ │ ├── Media.php
│ │ ├── Pagination.php
│ │ ├── Sanitizer.php
│ │ └── Themes.php
│ ├── WordPress.php
│ └── WordPress
│ │ └── RestApi.php
│ ├── Zip.php
│ └── Zip
│ ├── BigInt.php
│ ├── Enum.php
│ ├── Enum
│ ├── Method.php
│ └── Version.php
│ ├── File.php
│ ├── Option
│ ├── Archive.php
│ └── File.php
│ ├── Stream.php
│ ├── StreamDeflator.php
│ └── StreamInterface.php
├── license.txt
├── readme.txt
├── stephino-rpg.php
├── themes
└── default
│ ├── about.json
│ ├── config.json
│ ├── css
│ └── style.css
│ ├── i18n.php
│ ├── img
│ ├── story
│ │ ├── buildings
│ │ │ ├── 1
│ │ │ │ └── 512.png
│ │ │ ├── 2
│ │ │ │ └── 512.png
│ │ │ ├── 3
│ │ │ │ └── 512.png
│ │ │ ├── 4
│ │ │ │ └── 512.png
│ │ │ ├── 5
│ │ │ │ └── 512.png
│ │ │ ├── 6
│ │ │ │ └── 512.png
│ │ │ ├── 7
│ │ │ │ └── 512.png
│ │ │ ├── 8
│ │ │ │ └── 512.png
│ │ │ ├── 9
│ │ │ │ └── 512.png
│ │ │ ├── 10
│ │ │ │ └── 512.png
│ │ │ ├── 11
│ │ │ │ └── 512.png
│ │ │ ├── 12
│ │ │ │ └── 512.png
│ │ │ ├── 13
│ │ │ │ └── 512.png
│ │ │ ├── 14
│ │ │ │ └── 512.png
│ │ │ └── 15
│ │ │ │ └── 512.png
│ │ ├── cities
│ │ │ ├── 1
│ │ │ │ ├── 512-under-construction.png
│ │ │ │ ├── 512-vacant-ready.png
│ │ │ │ ├── 512-vacant.png
│ │ │ │ ├── 512.png
│ │ │ │ └── full.jpg
│ │ │ └── common
│ │ │ │ ├── 512-vacant-above.png
│ │ │ │ └── 512-vacant.png
│ │ ├── governments
│ │ │ ├── 1
│ │ │ │ └── 512.png
│ │ │ ├── 2
│ │ │ │ └── 512.png
│ │ │ ├── 3
│ │ │ │ └── 512.png
│ │ │ ├── 4
│ │ │ │ └── 512.png
│ │ │ └── 5
│ │ │ │ └── 512.png
│ │ ├── islandStatues
│ │ │ ├── 1
│ │ │ │ ├── 512-above.png
│ │ │ │ └── 512.png
│ │ │ ├── 2
│ │ │ │ ├── 512-above.png
│ │ │ │ └── 512.png
│ │ │ ├── 3
│ │ │ │ ├── 512-above.png
│ │ │ │ └── 512.png
│ │ │ └── sprites
│ │ │ │ └── 0.png
│ │ ├── islands
│ │ │ ├── 1
│ │ │ │ ├── 512.png
│ │ │ │ └── full.jpg
│ │ │ ├── 2
│ │ │ │ ├── 512.png
│ │ │ │ └── full.jpg
│ │ │ ├── 3
│ │ │ │ ├── 512.png
│ │ │ │ └── full.jpg
│ │ │ ├── 4
│ │ │ │ ├── 512.png
│ │ │ │ └── full.jpg
│ │ │ └── 5
│ │ │ │ ├── 512.png
│ │ │ │ └── full.jpg
│ │ ├── researchAreas
│ │ │ ├── 1
│ │ │ │ └── 512.png
│ │ │ ├── 2
│ │ │ │ └── 512.png
│ │ │ └── 3
│ │ │ │ └── 512.png
│ │ ├── researchFields
│ │ │ ├── 1
│ │ │ │ └── 512.png
│ │ │ ├── 2
│ │ │ │ └── 512.png
│ │ │ ├── 3
│ │ │ │ └── 512.png
│ │ │ ├── 4
│ │ │ │ └── 512.png
│ │ │ ├── 5
│ │ │ │ └── 512.png
│ │ │ ├── 6
│ │ │ │ └── 512.png
│ │ │ ├── 7
│ │ │ │ └── 512.png
│ │ │ ├── 8
│ │ │ │ └── 512.png
│ │ │ ├── 9
│ │ │ │ └── 512.png
│ │ │ ├── 10
│ │ │ │ └── 512.png
│ │ │ ├── 11
│ │ │ │ └── 512.png
│ │ │ ├── 12
│ │ │ │ └── 512.png
│ │ │ ├── 13
│ │ │ │ └── 512.png
│ │ │ ├── 14
│ │ │ │ └── 512.png
│ │ │ ├── 15
│ │ │ │ └── 512.png
│ │ │ ├── 16
│ │ │ │ └── 512.png
│ │ │ ├── 17
│ │ │ │ └── 512.png
│ │ │ └── 18
│ │ │ │ └── 512.png
│ │ ├── ships
│ │ │ ├── 1
│ │ │ │ └── 512.png
│ │ │ ├── 2
│ │ │ │ └── 512.png
│ │ │ ├── 3
│ │ │ │ └── 512.png
│ │ │ ├── 4
│ │ │ │ └── 512.png
│ │ │ └── 5
│ │ │ │ └── 512.png
│ │ └── units
│ │ │ ├── 1
│ │ │ └── 512.png
│ │ │ ├── 2
│ │ │ └── 512.png
│ │ │ ├── 3
│ │ │ └── 512.png
│ │ │ ├── 4
│ │ │ └── 512.png
│ │ │ └── 5
│ │ │ └── 512.png
│ └── ui
│ │ ├── 192.png
│ │ ├── 512-robot.png
│ │ ├── 512.png
│ │ ├── 768.png
│ │ ├── cursor-default.cur
│ │ ├── cursor-pointer.cur
│ │ ├── login
│ │ ├── login-bkg.jpg
│ │ ├── login-char.png
│ │ ├── login-circle.png
│ │ └── login-stripes.png
│ │ ├── ptfs
│ │ ├── ptf-buttons.png
│ │ ├── ptf-player.png
│ │ └── ptf-tiles.png
│ │ ├── sentries
│ │ ├── 1
│ │ │ ├── 1.png
│ │ │ ├── 2.png
│ │ │ ├── 3.png
│ │ │ ├── 4.png
│ │ │ └── 5.png
│ │ ├── 2
│ │ │ ├── 1.png
│ │ │ ├── 2.png
│ │ │ ├── 3.png
│ │ │ ├── 4.png
│ │ │ └── 5.png
│ │ ├── 3
│ │ │ ├── 1.png
│ │ │ ├── 2.png
│ │ │ ├── 3.png
│ │ │ ├── 4.png
│ │ │ └── 5.png
│ │ ├── 4
│ │ │ ├── 1.png
│ │ │ ├── 2.png
│ │ │ ├── 3.png
│ │ │ ├── 4.png
│ │ │ └── 5.png
│ │ └── 512.png
│ │ ├── sprite-200.png
│ │ └── sprite-ui.png
│ ├── license.md
│ ├── license.png
│ └── txt
│ ├── cities.txt
│ ├── islands.txt
│ └── sentries.txt
├── ui
├── css
│ ├── bootstrap.css
│ ├── game
│ │ ├── city.css
│ │ ├── common.css
│ │ ├── island.css
│ │ └── world.css
│ ├── ptf
│ │ └── ptf-main.css
│ └── wordpress
│ │ ├── wp-dashboard.css
│ │ ├── wp-game.css
│ │ ├── wp-login.css
│ │ ├── wp-options.css
│ │ └── wp-themes.css
├── fonts
│ ├── Lato-Bold.woff2
│ ├── Lato-BoldLatin.woff2
│ ├── Lato-Regular.woff2
│ ├── Lato-RegularLatin.woff2
│ ├── Oxanium-Bold.ttf
│ ├── Oxanium-Light.ttf
│ └── Oxanium-Regular.ttf
├── help
│ ├── firebase-rules.html
│ └── firebase-rules.json
├── img
│ ├── badge-error.gif
│ ├── badge-success.gif
│ ├── changelog.png
│ ├── data-tables
│ │ ├── sort_asc.png
│ │ ├── sort_asc_disabled.png
│ │ ├── sort_both.png
│ │ ├── sort_desc.png
│ │ └── sort_desc_disabled.png
│ ├── file-icons.png
│ ├── header-banner.png
│ ├── icon.png
│ ├── icon.svg
│ ├── loading-badge.png
│ └── signature.png
├── js
│ ├── game
│ │ ├── city.js
│ │ ├── common.js
│ │ ├── island.js
│ │ └── world.js
│ ├── phaser.js
│ ├── ptf
│ │ ├── ptf-list.json
│ │ ├── ptf-list
│ │ │ ├── 1.json
│ │ │ ├── 10.json
│ │ │ ├── 11.json
│ │ │ ├── 12.json
│ │ │ ├── 13.json
│ │ │ ├── 14.json
│ │ │ ├── 15.json
│ │ │ ├── 2.json
│ │ │ ├── 3.json
│ │ │ ├── 4.json
│ │ │ ├── 5.json
│ │ │ ├── 6.json
│ │ │ ├── 7.json
│ │ │ ├── 8.json
│ │ │ └── 9.json
│ │ └── ptf-main.js
│ ├── pwa
│ │ └── pwa-worker.js
│ ├── stephino.js
│ └── wordpress
│ │ ├── wp-dashboard.js
│ │ ├── wp-game.js
│ │ ├── wp-gutenberg.js
│ │ ├── wp-login.js
│ │ ├── wp-options.js
│ │ └── wp-themes.js
└── tpl
│ ├── console
│ ├── console-help.php
│ ├── console-list-city-buildings.php
│ ├── console-list-city-entities.php
│ ├── console-list-city-military.php
│ ├── console-list-city-resources.php
│ ├── console-list-island-cities.php
│ ├── console-list-ptf.php
│ ├── console-list-stages.php
│ ├── console-list-user-cities.php
│ ├── console-list-user-convoys.php
│ ├── console-list-user-resources.php
│ └── console-set-user-time-travel.php
│ ├── dialogs
│ ├── attack
│ │ ├── attack-prepare.php
│ │ └── attack-review.php
│ ├── building
│ │ ├── building-info-entities.php
│ │ ├── building-info-metrics.php
│ │ ├── building-info-research-areas.php
│ │ ├── building-info.php
│ │ ├── building-market.php
│ │ ├── building-upgrade-cancel.php
│ │ └── building-upgrade.php
│ ├── city
│ │ ├── city-advisor.php
│ │ ├── city-garrison.php
│ │ ├── city-government.php
│ │ ├── city-info.php
│ │ ├── city-move-capital.php
│ │ ├── city-queues.php
│ │ ├── city-stages.php
│ │ └── city-workforce.php
│ ├── common
│ │ ├── common-costs.php
│ │ ├── common-entity-military.php
│ │ ├── common-entity-prepare.php
│ │ ├── common-pagination.php
│ │ ├── common-production.php
│ │ └── common-requirements.php
│ ├── convoy
│ │ └── convoy-list.php
│ ├── entity
│ │ ├── entity-dequeue.php
│ │ ├── entity-disband.php
│ │ └── entity-recruit.php
│ ├── help
│ │ ├── fragment
│ │ │ ├── help-fragment-abundance.php
│ │ │ ├── help-fragment-costs.php
│ │ │ ├── help-fragment-description.php
│ │ │ ├── help-fragment-discounts.php
│ │ │ ├── help-fragment-poly.php
│ │ │ ├── help-fragment-production.php
│ │ │ ├── help-fragment-requirements.php
│ │ │ └── help-fragment-unlocks.php
│ │ ├── help-content-buildings.php
│ │ ├── help-content-cities.php
│ │ ├── help-content-core.php
│ │ ├── help-content-governments.php
│ │ ├── help-content-islandStatues.php
│ │ ├── help-content-islands.php
│ │ ├── help-content-premiumModifiers.php
│ │ ├── help-content-researchAreas.php
│ │ ├── help-content-researchFields.php
│ │ ├── help-content-ships.php
│ │ ├── help-content-units.php
│ │ └── help.php
│ ├── island
│ │ ├── island-colonize-prepare.php
│ │ ├── island-colonize-review.php
│ │ ├── island-info.php
│ │ └── island-upgrade.php
│ ├── messages
│ │ ├── messages-list.php
│ │ └── messages-read.php
│ ├── premium
│ │ ├── premium-modifiers-details.php
│ │ ├── premium-modifiers.php
│ │ └── premium-packages.php
│ ├── research
│ │ └── research-info.php
│ ├── sentry
│ │ ├── sentry-challenge-list.php
│ │ ├── sentry-challenge-prepare.php
│ │ ├── sentry-customize.php
│ │ └── sentry-info.php
│ ├── settings
│ │ ├── settings-about.php
│ │ ├── settings-announcement.php
│ │ ├── settings-delete-account.php
│ │ ├── settings-info.php
│ │ ├── settings-language.php
│ │ └── settings-resources.php
│ ├── spy
│ │ └── spy-review.php
│ ├── transport
│ │ ├── transport-prepare.php
│ │ └── transport-review.php
│ └── user
│ │ ├── user-arena-edit.php
│ │ ├── user-arena-list-page.php
│ │ ├── user-arena-list.php
│ │ ├── user-arena-play-details.php
│ │ ├── user-arena-play.php
│ │ ├── user-cities.php
│ │ ├── user-info.php
│ │ ├── user-leader-board.php
│ │ └── user-trade.php
│ ├── notif
│ ├── common
│ │ └── invalid-data.php
│ ├── notif-premium-modifier.php
│ ├── notif-premium-package.php
│ ├── notif-ptf-author-reward.php
│ ├── notif-ptf-review.php
│ ├── notif-tutorial-rewards.php
│ ├── notif-user-game-master.php
│ └── timelapse
│ │ ├── list-entities.php
│ │ ├── list-resources.php
│ │ ├── notif-diplomacy-challenge.php
│ │ ├── notif-diplomacy-colony.php
│ │ ├── notif-diplomacy-discovery.php
│ │ ├── notif-diplomacy-premium.php
│ │ ├── notif-economy-building.php
│ │ ├── notif-economy-entity.php
│ │ ├── notif-economy-transport.php
│ │ ├── notif-military-attack.php
│ │ ├── notif-military-return.php
│ │ ├── notif-military-spy.php
│ │ ├── notif-research-done.php
│ │ └── notif-research-unlock.php
│ └── wordpress
│ ├── wp-dashboard.php
│ ├── wp-game.php
│ ├── wp-notice.php
│ ├── wp-options.php
│ ├── wp-ptf.php
│ └── wp-themes.php
└── uninstall.php
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: https://gumroad.com/l/stephino-rpg # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
13 |
--------------------------------------------------------------------------------
/docs/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 | * @package stephino-rpg
9 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
10 | */
11 | /* global stephino_rpg_tools, stephino_rpg_data */
12 | // Stephino RPG: Admin - Play
13 | jQuery && jQuery(document).ready(function() { stephino_rpg_tools && stephino_rpg_tools.pwa.init();});
--------------------------------------------------------------------------------
/ui/tpl/console/console-help.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 | ?>
14 |
15 |
16 |
17 | Console Commands
18 | $methodInfo):
20 | list($cliMethodName, $cliMethodDetailsArray) = $methodInfo;
21 | ?>
22 | ``:
23 |
24 |
25 |
--------------------------------------------------------------------------------
/ui/tpl/console/console-list-city-buildings.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 | ?>
14 | Buildings:
15 |
16 |
17 |
18 | -
19 | getId();?> (getName(true);?>):
20 | getId()])):?>
21 |
22 | -
23 | Level: getId()][Stephino_Rpg_Db_Table_Buildings::COL_BUILDING_LEVEL];?>
24 |
25 | -
26 | Workers: getId()][Stephino_Rpg_Db_Table_Buildings::COL_BUILDING_WORKERS];?>
27 |
28 |
29 |
30 | not built
31 |
32 |
33 |
34 |
35 |
36 | not configured
37 |
--------------------------------------------------------------------------------
/ui/tpl/console/console-list-city-entities.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 | ?>
14 |
15 | -
16 | Units:
17 |
18 |
19 |
20 | -
21 | getId();?> (getName(true);?>):
22 | getId()])):?>
23 | getId()][Stephino_Rpg_Db_Table_Entities::COL_ENTITY_COUNT];?>
24 |
25 | not recruited
26 |
27 |
28 |
29 |
30 |
31 | not configured
32 |
33 |
34 | -
35 | Ships:
36 |
37 |
38 |
39 | -
40 | getId();?> (getName(true);?>):
41 | getId()])):?>
42 | getId()][Stephino_Rpg_Db_Table_Entities::COL_ENTITY_COUNT];?>
43 |
44 | not built
45 |
46 |
47 |
48 |
49 |
50 | not configured
51 |
52 |
53 |
--------------------------------------------------------------------------------
/ui/tpl/console/console-list-city-resources.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 | ?>
14 |
15 | list($configResourceName, $dbKey)):?>
16 | -
17 | ():
18 |
19 |
20 |
--------------------------------------------------------------------------------
/ui/tpl/console/console-list-island-cities.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 | ?>
14 |
15 | $dbRow):?>
16 | -
17 |
18 | Slot : vacant lot
19 |
20 | Slot :
21 |
22 | - City ID:
23 | - City Level:
24 | - User ID:
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/ui/tpl/console/console-list-ptf.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | /* @var $ptfData array */
15 | ?>
16 |
17 |
18 | -
19 |
$ptfRow[Stephino_Rpg_Db_Table_Ptfs::COL_PTF_NAME],
23 | 'version' => (int) $ptfRow[Stephino_Rpg_Db_Table_Ptfs::COL_PTF_VERSION],
24 | 'width' => (int) $ptfRow[Stephino_Rpg_Db_Table_Ptfs::COL_PTF_WIDTH],
25 | 'height' => (int) $ptfRow[Stephino_Rpg_Db_Table_Ptfs::COL_PTF_HEIGHT],
26 | )
27 | );
28 | ?>
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/ui/tpl/console/console-list-stages.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | /* @var $item Stephino_Rpg_Config_Trait_Requirement */
15 | ?>
16 |
17 | $unlockStage):?>
18 | -
19 | Stage
20 |
21 |
22 | -
23 | getName();?> ( #getId();?>)
24 | getRequiredBuilding() || null !== $item->getRequiredResearchField()):?>
25 |
Requires:
26 |
27 | getRequiredBuilding()):?>
28 | -
29 | getRequiredBuilding()->getName();?> ( #getRequiredBuilding()->getId();?>)
30 | level getRequiredBuildingLevel();?>
31 |
32 |
33 | getRequiredResearchField()):?>
34 | -
35 | getRequiredResearchField()->getName();?> ( #getRequiredResearchField()->getId();?>)
36 | getRequiredResearchField()->getLevelsEnabled()):?>
37 | level getRequiredResearchFieldLevel();?>
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/ui/tpl/console/console-list-user-cities.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 | ?>
14 |
15 |
16 | -
17 |
18 |
19 | - City ID:
20 | - City Level:
21 | - Island ID:
22 | - Island Slot:
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/ui/tpl/console/console-list-user-convoys.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 | ?>
14 |
15 |
16 | -
17 | Convoy #
18 |
19 | -
20 | Type:
21 |
22 | -
23 | Timing
24 |
25 | - Arrival time:
26 | 0):?>
27 | - Retreat time:
28 |
29 | - Travel duration: s
30 | - Travel speed:
31 |
32 |
33 | -
34 | Origin
35 |
36 | - User ID:
37 | - Island ID:
38 | - City ID:
39 |
40 |
41 | -
42 | Destination
43 |
44 | - User ID:
45 | - Island ID:
46 | - City ID:
47 |
48 |
49 | -
50 | Payload
51 |
53 |
54 |
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/ui/tpl/console/console-list-user-resources.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 | ?>
14 |
15 | list($configResourceName, $dbKey)):?>
16 | -
17 | ():
18 |
19 |
20 |
--------------------------------------------------------------------------------
/ui/tpl/dialogs/building/building-upgrade-cancel.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | /* @var $buildingConfig Stephino_Rpg_Config_Building */
15 | ?>
16 |
17 |
18 |
19 |
20 | getRefundPercent() == 0):?>
21 |
26 |
27 |
28 |
29 | ' . $buildingConfig->getRefundPercent() . '%'
33 | );
34 | ?>
35 |
36 |
37 | getRefundPercent();
41 |
42 | // Show the table
43 | require Stephino_Rpg_Renderer_Ajax_Dialog::dialogTemplatePath(
44 | Stephino_Rpg_Renderer_Ajax_Dialog::TEMPLATE_COMMON_COSTS
45 | );
46 | ?>
47 |
48 |
49 |
50 |
55 |
56 |
57 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/ui/tpl/dialogs/building/building-upgrade.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | /* @var $canAfford boolean */
15 | /* @var $requirementsMet boolean */
16 | /* @var $buildingConfig Stephino_Rpg_Config_Building */
17 | $buildingLevel = is_array($buildingData) ? intval($buildingData[Stephino_Rpg_Db_Table_Buildings::COL_BUILDING_LEVEL]) : 0;
18 | ?>
19 |
20 | ' . ($buildingLevel + 1) . ''
27 | );
28 | $costDiscount = Stephino_Rpg_Renderer_Ajax_Action::getDiscount($buildingConfig);
29 | $costTimeContraction = Stephino_Rpg_Renderer_Ajax_Action::getTimeContraction($buildingConfig);
30 | require Stephino_Rpg_Renderer_Ajax_Dialog::dialogTemplatePath(
31 | Stephino_Rpg_Renderer_Ajax_Dialog::TEMPLATE_COMMON_COSTS
32 | );
33 | ?>
34 |
39 |
40 |
41 |
46 |
47 |
48 |
49 |
56 |
57 |
58 |
59 |
--------------------------------------------------------------------------------
/ui/tpl/dialogs/city/city-move-capital.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | ?>
15 | ' . $cityInfo[Stephino_Rpg_Db_Table_Cities::COL_CITY_LEVEL] . ''
20 | );
21 | require Stephino_Rpg_Renderer_Ajax_Dialog::dialogTemplatePath(
22 | Stephino_Rpg_Renderer_Ajax_Dialog::TEMPLATE_COMMON_COSTS
23 | );
24 | ?>
25 |
26 |
28 |
33 |
34 |
35 |
42 |
43 |
--------------------------------------------------------------------------------
/ui/tpl/dialogs/common/common-entity-military.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | /* @var $entityCount int */
15 | /* @var $entityConfig Stephino_Rpg_Config_Unit|Stephino_Rpg_Config_Ship */
16 | /* @var $entityDisbandMode boolean */
17 | if (!isset($entityDisbandMode)) {
18 | $entityDisbandMode = false;
19 | }
20 | /* @var $entityLayoutGarrison boolean */
21 | if (!isset($entityLayoutGarrison)) {
22 | $entityLayoutGarrison = false;
23 | }
24 | // Prepare the military capabiliies
25 | $entityAttackPoints = $entityConfig->getCivilian()
26 | ? 0
27 | : $entityCount * ($entityConfig->getDamage() * $entityConfig->getAmmo()) * ($entityDisbandMode ? -1 : 1);
28 | $entityDefensePoints = $entityConfig->getCivilian()
29 | ? 0
30 | : $entityCount * ($entityConfig->getArmour() * $entityConfig->getAgility()) * ($entityDisbandMode ? -1 : 1);
31 | ?>
32 |
33 |
34 |
37 |
38 |
39 | core()->getMilitaryAttackName(true);?>:
42 |
43 |
44 |
45 |
46 |
49 |
50 |
51 | core()->getMilitaryDefenseName(true);?>:
54 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/ui/tpl/dialogs/common/common-entity-prepare.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | /* @var $entityPrepareCapability string */
15 | if (!isset($entityPrepareCapability)) {
16 | $entityPrepareCapability = '';
17 | }
18 |
19 | /* @var $entityPrepareSingular string */
20 | if (!isset($entityPrepareSingular)) {
21 | $entityPrepareSingular = '';
22 | }
23 |
24 | /* @var $entityPreparePlural string */
25 | if (!isset($entityPreparePlural)) {
26 | $entityPreparePlural = '';
27 | }
28 |
29 | /* @var $entityPrepareNotAllowed string */
30 | if (!isset($entityPrepareNotAllowed)) {
31 | $entityPrepareNotAllowed = '';
32 | }
33 |
34 | /* @var $entityConfig Stephino_Rpg_Config_Unit|Stephino_Rpg_Config_Ship */
35 | $entityConfigs = Stephino_Rpg_Utils_Config::getEntitiesByCapability($entityPrepareCapability);
36 | ?>
37 |
38 |
39 |
44 |
45 |
55 |
56 |
62 |
65 | getName(true);?>
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
--------------------------------------------------------------------------------
/ui/tpl/dialogs/common/common-pagination.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | /* @var $pagination Stephino_Rpg_Utils_Pagination */
15 | if (isset($pagination)
16 | && $pagination instanceof Stephino_Rpg_Utils_Pagination
17 | && $pagination->getPagesTotal() > 1):
18 | ?>
19 |
42 |
--------------------------------------------------------------------------------
/ui/tpl/dialogs/entity/entity-dequeue.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | /* @var $queueData array */
15 | /* @var $entityConfig Stephino_Rpg_Config_Unit|Stephino_Rpg_Config_Ship */
16 | ?>
17 |
18 |
19 |
20 |
21 |
22 |
25 | getName(true);?>
26 |
27 |
28 |
29 |
30 |
31 |
40 |
41 | 0):?>
42 |
43 |
53 |
54 |
60 |
61 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/ui/tpl/dialogs/help/fragment/help-fragment-abundance.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | /* @var $configObject Stephino_Rpg_Config_Trait_XResourceAbundance */
15 | ?>
16 | getResourceExtra1Abundant() || $configObject->getResourceExtra2Abundant()):?>
17 |
18 |
19 | getResourceExtra1Abundant()):?>
20 |
21 |
33 |
34 |
35 | getResourceExtra2Abundant()):?>
36 |
37 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/ui/tpl/dialogs/help/fragment/help-fragment-description.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 | ?>
14 |
15 |
16 |
17 |
25 |
isPro() && is_file(Stephino_Rpg_Utils_Themes::getActive()->getFilePath('img/story/' . $itemType . '/' . $configObject->getId() . '/512.mp4'))): ?>
28 | data-effect="video"
29 |
30 | data-effect="background"
31 |
32 | data-effect-args=",getId();?>">
33 |
34 |
35 |
36 |
37 |
38 | getDescription())):?>
39 | getDescription());?>
40 |
41 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/ui/tpl/dialogs/help/fragment/help-fragment-discounts.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | /* @var $configObject Stephino_Rpg_Config_Trait_Discount */
15 | $validDiscountsBuildings = $configObject->getEnablesDiscountBuildings() && is_array($configObject->getDiscountBuildings());
16 | $validDiscountsUnits = $configObject->getEnablesDiscountUnits() && is_array($configObject->getDiscountUnits());
17 | $validDiscountsShips = $configObject->getEnablesDiscountShips() && is_array($configObject->getDiscountShips());
18 | if ($validDiscountsBuildings || $validDiscountsUnits || $validDiscountsShips): ?>
19 |
20 |
21 |
22 |
23 |
24 | getDiscountBuildings() as $buildingConfig):?>
25 | -
26 |
29 | getName(true); ?>
30 | : -getDiscountBuildingsPercent();?>%
31 |
32 |
33 | getDiscountUnits() as $unitConfig):?>
34 | -
35 |
38 | getName(true); ?>
39 | : -getDiscountUnitsPercent();?>%
40 |
41 |
42 | getDiscountShips() as $shipConfig):?>
43 | -
44 |
47 | getName(true); ?>
48 | : -getDiscountShipsPercent();?>%
49 |
50 |
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/ui/tpl/dialogs/help/fragment/help-fragment-production.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | /* @var $configObject Stephino_Rpg_Config_Trait_Modifier */
15 |
16 | // Initialize the production data
17 | if (!isset($productionData)) {
18 | $productionData = Stephino_Rpg_Renderer_Ajax_Action::getProductionData($configObject);
19 | }
20 | ?>
21 |
22 |
23 |
24 |
25 | $prodInfo):
27 | list($prodInfoName, $polynomialBase, $prodInfoKey) = $prodInfo;
28 | ?>
29 |
30 |
31 |
34 | getModifierPolynomial();
37 |
38 | // Load the fragment
39 | require Stephino_Rpg_Renderer_Ajax_Dialog_Help::dialogTemplatePath(
40 | Stephino_Rpg_Renderer_Ajax_Dialog_Help::TEMPLATE_FRAGMENT_POLY
41 | );
42 | ?>/h
43 |
44 |
45 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/ui/tpl/dialogs/help/fragment/help-fragment-requirements.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | /* @var $configObject Stephino_Rpg_Config_Trait_Requirement */
15 | ?>
16 | getRequiredBuilding() || null !== $configObject->getRequiredResearchField()): ?>
17 |
18 |
19 | getRequiredBuilding()):?>
20 |
21 |
24 | getRequiredBuilding()->getName(true);?>
25 |
26 | getRequiredBuildingLevel();?>
27 |
28 |
29 | getRequiredResearchField()):?>
30 |
31 |
34 | getRequiredResearchField()->getName(true);?>
35 |
36 | getRequiredResearchField()->getLevelsEnabled()):?>
37 | level getRequiredResearchFieldLevel();?>
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/ui/tpl/dialogs/help/help-content-islandStatues.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | /* @var $configObject Stephino_Rpg_Config_IslandStatue */
15 | $costData = Stephino_Rpg_Renderer_Ajax_Action::getCostData($configObject);
16 | $productionData = Stephino_Rpg_Renderer_Ajax_Action::getProductionData($configObject);
17 | ?>
18 |
19 |
20 |
21 | core()->getConfigIslandStatuesName(true);?> › getName(true);?>
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
37 |
38 |
39 |
40 |
41 |
42 |
47 |
48 |
49 |
50 |
51 |
52 | - core()->getConfigIslandStatuesName(true),
56 | Stephino_Rpg_Config::get()->core()->getConfigCityName(true)
57 | );
58 | ?>
59 |
60 |
61 |
62 |
67 |
--------------------------------------------------------------------------------
/ui/tpl/dialogs/help/help-content-researchAreas.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | /* @var $configObject Stephino_Rpg_Config_ResearchArea */
15 | ?>
16 |
17 |
18 |
19 | core()->getConfigResearchAreasName(true);?> › getName(true);?>
20 |
21 |
22 |
23 |
28 |
29 |
30 |
31 | getBuilding()):?>
32 | -
33 |
34 |
37 | getBuilding()->getName(true);?>
38 |
39 |
40 |
41 | -
42 | ' . Stephino_Rpg_Config::get()->core()->getConfigResearchFieldsName(true) . ''
46 | );
47 | ?>
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/ui/tpl/dialogs/island/island-colonize-prepare.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 | ?>
14 |
15 |
16 |
17 |
;?>)
18 |
19 |
20 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/ui/tpl/dialogs/island/island-upgrade.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | /* @var $islandConfig Stephino_Rpg_Config_Island */
15 | /* @var $islandStatueConfig Stephino_Rpg_Config_IslandStatue */
16 | ?>
17 | ' . ($islandData[Stephino_Rpg_Db_Table_Islands::COL_ISLAND_STATUE_LEVEL] + 1) . ''
21 | );
22 | require Stephino_Rpg_Renderer_Ajax_Dialog::dialogTemplatePath(
23 | Stephino_Rpg_Renderer_Ajax_Dialog::TEMPLATE_COMMON_COSTS
24 | );
25 | ?>
26 |
27 |
28 |
33 |
34 |
35 |
42 |
43 |
--------------------------------------------------------------------------------
/ui/tpl/dialogs/messages/messages-read.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | /* @var $messageData array */
15 | ?>
16 |
17 |
18 |
19 | 💬
20 |
21 | tableUsers()->getById($messageData[Stephino_Rpg_Db_Table_Messages::COL_MESSAGE_FROM], true))): ?>
22 |
25 |
26 |
27 |
28 |
29 | :
30 |
31 |
32 |
33 |
34 |
35 |
36 |
41 |
42 | setSafeMode()
45 | ->setUrlsLinked()
46 | ->setLinksRemoved()
47 | ->setImagesRemoved()
48 | ->parse($messageData[Stephino_Rpg_Db_Table_Messages::COL_MESSAGE_CONTENT]);
49 | ?>
50 |
51 |
52 |
--------------------------------------------------------------------------------
/ui/tpl/dialogs/sentry/sentry-customize.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | /* @var $userData array */
15 | ?>
16 |
17 |
18 |
19 |
20 |
23 |
--------------------------------------------------------------------------------
/ui/tpl/dialogs/settings/settings-about.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | /* @var $changeLogFlag boolean True when the dialog is triggered on game update */
15 | /* @var $about string[] Array of Credits, Changelog */
16 | ?>
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/ui/tpl/dialogs/settings/settings-announcement.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | /* @var $paragraphs string */
15 | ?>
16 |
--------------------------------------------------------------------------------
/ui/tpl/dialogs/settings/settings-delete-account.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | ?>
15 |
32 |
--------------------------------------------------------------------------------
/ui/tpl/dialogs/settings/settings-language.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | ?>
15 |
16 |
17 |
18 |
19 | $langValue):?>
20 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/ui/tpl/dialogs/user/user-arena-play.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | /* @var $ptfId int*/
15 | ?>
16 |
17 |
18 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/ui/tpl/notif/common/invalid-data.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 | ?>
14 |
--------------------------------------------------------------------------------
/ui/tpl/notif/notif-premium-modifier.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | if (Stephino_Rpg_Db_Model_Messages::isValidNotifData($notifData, 1)):
15 | /* @var $premiumModifierConfigId int */
16 | list($premiumModifierConfigId) = $notifData;
17 |
18 | $premiumModifierConfig = Stephino_Rpg_Config::get()
19 | ->premiumModifiers()
20 | ->getById($premiumModifierConfigId);
21 |
22 | $premiumModifierName = null !== $premiumModifierConfig
23 | ? $premiumModifierConfig->getName()
24 | : __('Unknown premium modifier', 'stephino-rpg');
25 |
26 | $premiumModifierDuration = null !== $premiumModifierConfig
27 | ? $premiumModifierConfig->getDuration()
28 | : 0;
29 | ?>
30 |
31 | '
34 | . esc_html($premiumModifierName)
35 | . '';
36 | echo sprintf(esc_html__('You have just activated the %s premium modifier', 'stephino-rpg'), $i18nPremiumName);
37 | ?>
38 |
39 | '
42 | . '
'
43 | . '
'
44 | . ''
45 | . $premiumModifierDuration . ' ' . esc_html(_n('hour', 'hours', $premiumModifierDuration, 'stephino-rpg'))
46 | . ''
47 | . ''
48 | . '
';
49 | echo sprintf(esc_html__('The effects of the premium modifier will last for %s', 'stephino-rpg'), $i18nPremiumEffect);
50 | ?>
51 |
52 |
--------------------------------------------------------------------------------
/ui/tpl/notif/notif-premium-package.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | if (Stephino_Rpg_Db_Model_Messages::isValidNotifData($notifData, 1)):
15 | /* @var $premiumPackageConfigId int */
16 | list($premiumPackageConfigId) = $notifData;
17 |
18 | $premiumPackageConfig = Stephino_Rpg_Config::get()
19 | ->premiumPackages()
20 | ->getById($premiumPackageConfigId);
21 |
22 | $premiumPackageName = null !== $premiumPackageConfig
23 | ? $premiumPackageConfig->getName()
24 | : __('Unknown premium package', 'stephino-rpg');
25 |
26 | $premiumPackageGems = null !== $premiumPackageConfig
27 | ? $premiumPackageConfig->getGem()
28 | : 0;
29 | ?>
30 |
31 | '
35 | . esc_html($premiumPackageName)
36 | . ''
37 | );
38 | ?>
39 |
40 | '
44 | . '
'
45 | . '
' . number_format($premiumPackageGems) . ' ' . Stephino_Rpg_Config::get()->core()->getResourceGemName(true) . ''
46 | . '
'
47 | );
48 | ?>
49 |
50 |
--------------------------------------------------------------------------------
/ui/tpl/notif/notif-ptf-author-reward.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | if (Stephino_Rpg_Db_Model_Messages::isValidNotifData($notifData, 5)):
15 | /* @var $ptfId int*/
16 | /* @var $ptfName int*/
17 | /* @var $playerId int */
18 | /* @var $playerName string */
19 | /* @var $rewardGems int */
20 | list($ptfId, $ptfName, $playerId, $playerName, $rewardGems) = $notifData;
21 | ?>
22 |
23 |
24 |
25 | ' . esc_html($playerName) . '',
29 | ''
30 | . esc_html($ptfName)
31 | . ''
32 | );
33 | ?>
34 |
35 |
36 |
37 |
38 |
39 | core()->getResourceGemName(true);?>
40 |
41 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/ui/tpl/notif/notif-tutorial-rewards.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | if (Stephino_Rpg_Db_Model_Messages::isValidNotifData($notifData, 1)):
15 | /* @var $tutorialConfigId int */
16 | list($tutorialConfigId) = $notifData;
17 |
18 | $tutorialConfig = Stephino_Rpg_Config::get()
19 | ->tutorials()
20 | ->getById($tutorialConfigId);
21 |
22 | $tutorialName = null !== $tutorialConfig
23 | ? $tutorialConfig->getName(true)
24 | : esc_html__('Unknown', 'stephino-rpg');
25 |
26 | $resourcesList = null !== $tutorialConfig
27 | ? array(
28 | Stephino_Rpg_Db_Table_Users::COL_USER_RESOURCE_GOLD => $tutorialConfig->getTutorialCheckPointRewardGold(),
29 | Stephino_Rpg_Db_Table_Users::COL_USER_RESOURCE_RESEARCH => $tutorialConfig->getTutorialCheckPointRewardResearch(),
30 | Stephino_Rpg_Db_Table_Users::COL_USER_RESOURCE_GEM => $tutorialConfig->getTutorialCheckPointRewardGem(),
31 | Stephino_Rpg_Db_Table_Cities::COL_CITY_RESOURCE_ALPHA => $tutorialConfig->getTutorialCheckPointRewardAlpha(),
32 | Stephino_Rpg_Db_Table_Cities::COL_CITY_RESOURCE_BETA => $tutorialConfig->getTutorialCheckPointRewardBeta(),
33 | Stephino_Rpg_Db_Table_Cities::COL_CITY_RESOURCE_GAMMA => $tutorialConfig->getTutorialCheckPointRewardGamma(),
34 | Stephino_Rpg_Db_Table_Cities::COL_CITY_RESOURCE_EXTRA_1 => $tutorialConfig->getTutorialCheckPointRewardExtra1(),
35 | Stephino_Rpg_Db_Table_Cities::COL_CITY_RESOURCE_EXTRA_2 => $tutorialConfig->getTutorialCheckPointRewardExtra2(),
36 | )
37 | : array();
38 | ?>
39 |
40 |
41 |
42 | ' . intval($tutorialConfigId) . ' (' . $tutorialName . ')'
46 | );
47 | ?>
48 |
49 | list($resName, $resValue, $resAjaxKey)):
51 | if ($resValue > 0):
52 | ?>
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/ui/tpl/notif/notif-user-game-master.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | if (Stephino_Rpg_Db_Model_Messages::isValidNotifData($notifData, 1)):
15 | /* @var $gameMaster boolean */
16 | list($gameMaster) = $notifData;
17 | ?>
18 |
31 |
--------------------------------------------------------------------------------
/ui/tpl/notif/timelapse/notif-diplomacy-colony.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | if (Stephino_Rpg_Db_Model_Messages::isValidNotifData($notifData, 1)):
15 | /* @var $itemDataCityInfo int[]|null */
16 | list($itemDataCityInfo) = $notifData;
17 | ?>
18 |
19 | cities()->getById($newCityConfigId);
26 | $newCityConfigName = null !== $newCityConfig
27 | ? $newCityConfig->getName(true)
28 | : esc_html__('Unknown', 'stephino-rpg');
29 | ?>
30 |
33 | modelCities()->getName($newCityId);?>
34 |
35 | ' . $newCityConfigName . ')'
38 | );?>
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/ui/tpl/notif/timelapse/notif-diplomacy-discovery.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | if (Stephino_Rpg_Db_Model_Messages::isValidNotifData($notifData, 1)):
15 | /* @var $researchFieldConfigId int */
16 | list($researchFieldConfigId) = $notifData;
17 | $researchFieldConfig = Stephino_Rpg_Config::get()
18 | ->researchFields()
19 | ->getById(
20 | $researchFieldConfigId
21 | );
22 | ?>
23 |
24 |
25 |
26 | getStory())
28 | ? esc_html($researchFieldConfig->getStory())
29 | : esc_html__('Our records were mysteriously destroyed', 'stephino-rpg');
30 | ?>
31 |
32 |
33 |
--------------------------------------------------------------------------------
/ui/tpl/notif/timelapse/notif-diplomacy-premium.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | if (Stephino_Rpg_Db_Model_Messages::isValidNotifData($notifData, 3)):
15 | /* @var $premiumModifierConfigId int */
16 | /* @var $premiumDuration int */
17 | /* @var $premiumQuantity int */
18 | list($premiumModifierConfigId, $premiumDuration, $premiumQuantity) = $notifData;
19 | $premiumModifierConfig = Stephino_Rpg_Config::get()->premiumModifiers()->getById(
20 | $premiumModifierConfigId
21 | );
22 | ?>
23 |
24 | '
28 | . '
'
29 | . '
'
30 | . $expireDays . ' ' . esc_html(_n('day', 'days', $expireDays, 'stephino-rpg'))
31 | . ''
32 | . '
';
33 |
34 | // Show the message
35 | echo (
36 | null !== $premiumModifierConfig
37 | ? sprintf(
38 | esc_html__('Premium modifier %s has expired after %s', 'stephino-rpg'),
39 | ''
40 | . $premiumModifierConfig->getName(true)
41 | . ' ×' . abs((int) $premiumQuantity) . '',
42 | $premiumModiferExpire
43 | )
44 | : sprintf(
45 | esc_html__('Unknown premium modifier %s has expired after %s', 'stephino-rpg'),
46 | '×'. abs((int) $premiumQuantity) . '',
47 | $premiumModiferExpire
48 | )
49 | );
50 | ?>
51 |
52 |
53 |
--------------------------------------------------------------------------------
/ui/tpl/notif/timelapse/notif-economy-building.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | if (Stephino_Rpg_Db_Model_Messages::isValidNotifData($notifData, 3)):
15 | /* @var $buildingConfigId int */
16 | /* @var $buildingLevel int */
17 | /* @var $buildingCityId int */
18 | list($buildingConfigId, $buildingLevel, $buildingCityId) = $notifData;
19 |
20 | $buildingConfig = Stephino_Rpg_Config::get()
21 | ->buildings()
22 | ->getById($buildingConfigId);
23 |
24 | $buildingConfigName = null !== $buildingConfig
25 | ? $buildingConfig->getName(true)
26 | : esc_html__('Unknown', 'stephino-rpg');
27 | ?>
28 |
29 |
30 |
31 |
34 |
35 |
36 |
37 |
38 |
39 | ' . $buildingConfigName . '',
45 | ''
46 | . Stephino_Rpg_Db::get()->modelCities()->getName($buildingCityId)
47 | . ''
48 | )
49 | : sprintf(
50 | esc_html__('%s upgraded to level %s in %s', 'stephino-rpg'),
51 | '' . $buildingConfigName . '',
52 | abs((int) $buildingLevel),
53 | ''
54 | . Stephino_Rpg_Db::get()->modelCities()->getName($buildingCityId)
55 | . ''
56 | )
57 | );
58 | ?>
59 |
60 |
--------------------------------------------------------------------------------
/ui/tpl/notif/timelapse/notif-economy-entity.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | if (Stephino_Rpg_Db_Model_Messages::isValidNotifData($notifData, 3)):
15 | /* @var $entityConfigId int */
16 | /* @var $entityType string */
17 | /* @var $entityCityId int */
18 | list($entityConfigId, $entityType, $entityCityId) = $notifData;
19 |
20 | // Get the entity configuration
21 | $entityConfig = Stephino_Rpg_Db_Table_Queues::ITEM_TYPE_UNIT == $entityType
22 | ? Stephino_Rpg_Config::get()->units()->getById($entityConfigId)
23 | : Stephino_Rpg_Config::get()->ships()->getById($entityConfigId);
24 |
25 | // Get the entity key
26 | $entityKey = Stephino_Rpg_Db_Table_Queues::ITEM_TYPE_UNIT == $entityType
27 | ? Stephino_Rpg_Config_Units::KEY
28 | : Stephino_Rpg_Config_Ships::KEY;
29 |
30 | // Get the entity name
31 | $entityName = null !== $entityConfig
32 | ? $entityConfig->getName(true)
33 | : esc_html__('Unknown', 'stephino-rpg');
34 | ?>
35 |
36 |
37 |
38 |
41 |
42 |
43 |
44 |
45 |
46 | ' . $entityName . ': ' . sprintf(
48 | Stephino_Rpg_Db_Table_Queues::ITEM_TYPE_UNIT == $entityType
49 | ? esc_html__('recruitment finished in %s', 'stephino-rpg')
50 | : esc_html__('construction finished in %s', 'stephino-rpg'),
51 | ''
52 | . Stephino_Rpg_Db::get()->modelCities()->getName($entityCityId)
53 | . ''
54 | );
55 | ?>
56 |
57 |
--------------------------------------------------------------------------------
/ui/tpl/notif/timelapse/notif-military-return.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | if (Stephino_Rpg_Db_Model_Messages::isValidNotifData($notifData, 3)):
15 | /* @var $payloadArray array|null */
16 | /* @var $fromCityId int */
17 | /* @var $toCityId int */
18 | list($payloadArray, $fromCityId, $toCityId) = $notifData;
19 | ?>
20 |
21 | '
25 | . Stephino_Rpg_Db::get()->modelCities()->getName($fromCityId)
26 | . '',
27 | ''
28 | . Stephino_Rpg_Db::get()->modelCities()->getName($toCityId)
29 | . ''
30 | );
31 | ?>
32 |
33 |
44 |
48 |
49 |
50 |
51 |
57 |
58 |
--------------------------------------------------------------------------------
/ui/tpl/notif/timelapse/notif-research-done.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 |
14 | if (Stephino_Rpg_Db_Model_Messages::isValidNotifData($notifData, 2)):
15 | /* @var $researchFieldConfigId int */
16 | /* @var $researchFieldLevel int */
17 | list($researchFieldConfigId, $researchFieldLevel) = $notifData;
18 |
19 | $researchFieldConfig = Stephino_Rpg_Config::get()
20 | ->researchFields()
21 | ->getById($researchFieldConfigId);
22 | ?>
23 |
28 | getResearchArea()):?>
29 |
30 |
31 |
32 |
35 | getName(true);?>
36 |
37 |
38 |
39 |
40 |
41 | '
43 | . $researchFieldConfig->getName(true)
44 | . '';
45 | $i18nResearchLevel = '' . abs((int) $researchFieldLevel) . '';
46 | echo $researchFieldConfig->getLevelsEnabled()
47 | ? sprintf(esc_html__('Research %s level %s complete', 'stephino-rpg'), $i18nResearchName, $i18nResearchLevel)
48 | : sprintf(esc_html__('Research %s complete', 'stephino-rpg'), $i18nResearchName);
49 | ?>
50 |
51 |
52 |
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/ui/tpl/wordpress/wp-notice.php:
--------------------------------------------------------------------------------
1 |
9 | * @package stephino-rpg
10 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
11 | */
12 | !defined('STEPHINO_RPG_ROOT') && exit();
13 | ?>
14 |
40 |
41 |
42 | ' . Stephino_Rpg::PLUGIN_NAME . ' Pro',
46 | '' . Stephino_Rpg::PLUGIN_VERSION_PRO . '+'
47 | );
48 | ?>
49 |
50 |
51 |
54 |
--------------------------------------------------------------------------------
/uninstall.php:
--------------------------------------------------------------------------------
1 |
11 | * @package stephino-rpg
12 | * @license GPL v3+, https://gnu.org/licenses/gpl-3.0.txt
13 | */
14 | if (!defined('ABSPATH') || !defined('WP_UNINSTALL_PLUGIN')) {
15 | exit();
16 | }
17 |
18 | // Define the root
19 | !defined('STEPHINO_RPG_ROOT') && define('STEPHINO_RPG_ROOT', dirname(__FILE__));
20 |
21 | // Prepare the autoloader
22 | require_once STEPHINO_RPG_ROOT . '/lib/Stephino/Rpg/Autoloader.php';
23 | Stephino_Rpg_Autoloader::get();
24 |
25 | // Remove all options (except for the PRO-level config)
26 | Stephino_Rpg_Cache_Game::get()->purge();
27 |
28 | // Remove the PRO-level configuration
29 | Stephino_Rpg::get()->isPro() && Stephino_Rpg_Pro::get()->purge();
30 |
31 | // Drop all tables
32 | Stephino_Rpg_Db::get()->purge();
33 |
34 | // Remove all themes
35 | Stephino_Rpg_Utils_Themes::purge();
36 |
37 | /*EOF*/
--------------------------------------------------------------------------------