Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minesweeper #1071

Merged
merged 34 commits into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
7d0e132
minesweeper
ROdenFL Jan 26, 2025
625ca27
Better then nothing
AyIong Jan 26, 2025
e52e401
Merge remote-tracking branch 'BS/master' into minesweeperr
ROdenFL Jan 29, 2025
6cac2c5
database and emag update
ROdenFL Jan 29, 2025
4a56ec2
Merge remote-tracking branch 'BS/master' into minesweeperr
ROdenFL Jan 29, 2025
eb3a232
better 516
ROdenFL Jan 29, 2025
916c8c2
oi
ROdenFL Jan 29, 2025
7e8fb17
some tabs
ROdenFL Jan 29, 2025
7d4e404
not null ckey
ROdenFL Jan 29, 2025
6fa738d
not null nickname
ROdenFL Jan 29, 2025
5cf5a89
points_per_sec
ROdenFL Jan 29, 2025
5ed8855
Merge branch 'master' into minesweeperr
ROdenFL Jan 30, 2025
cbee10b
comments
ROdenFL Jan 30, 2025
b0a3287
review and qdel memes
ROdenFL Jan 30, 2025
f1406ec
forgot
ROdenFL Jan 30, 2025
ea8b036
навсякий
ROdenFL Jan 30, 2025
1e861b4
async mems
ROdenFL Jan 30, 2025
4ea292c
Merge remote-tracking branch 'BS/master' into minesweeperr
ROdenFL Feb 1, 2025
0404a62
ie style memes
ROdenFL Feb 1, 2025
ca94d7b
Revert "ie style memes"
AyIong Feb 1, 2025
f76cc1b
Remove costulyaka
AyIong Feb 1, 2025
250b2de
Fix infobox
AyIong Feb 1, 2025
cd0535f
Update modular_bandastation/minesweeper/code/minesweeper.dm
ROdenFL Feb 2, 2025
a57bb16
work in progress
ROdenFL Feb 2, 2025
cd735de
review
ROdenFL Feb 2, 2025
7d2b781
Merge branch 'minesweeperr' of https://github.com/ROdenFL/Ratgestatio…
ROdenFL Feb 2, 2025
1bf7037
update_zeros update
ROdenFL Feb 2, 2025
3e12362
Update modular_bandastation/minesweeper/code/minesweeper.dm
ROdenFL Feb 3, 2025
b1cd064
Update modular_bandastation/minesweeper/code/minesweeper.dm
ROdenFL Feb 3, 2025
cc50fba
Update modular_bandastation/minesweeper/code/minesweeper.dm
Gaxeer Feb 3, 2025
b6f4be6
replace magic strings and numbers with macros, general code cleanup
Gaxeer Feb 3, 2025
7dfc98b
Merge pull request #1 from Gaxeer/minesweeperr
ROdenFL Feb 3, 2025
8fd1393
fix game time convertion to seconds, add some validations
Gaxeer Feb 4, 2025
f9a353f
Merge branch 'minesweeperr' of https://github.com/ROdenFL/Ratgestatio…
Gaxeer Feb 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions SQL/bandastation/bandastation_update.sql
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,21 @@ CREATE TABLE `budget` (
`discord_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) COLLATE='utf8mb4_general_ci' ENGINE=InnoDB;

--
-- Table structure for table `minesweeper`
--
DROP TABLE IF EXISTS `minesweeper`;
Gaxeer marked this conversation as resolved.
Show resolved Hide resolved
CREATE TABLE `minesweeper` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`date` DATETIME NOT NULL DEFAULT current_timestamp(),
`ckey` VARCHAR(32) NOT NULL COLLATE 'utf8mb4_unicode_ci',
`nickname` VARCHAR(32) NOT NULL COLLATE 'utf8mb4_unicode_ci',
`time` INT(10) UNSIGNED NOT NULL,
`points` INT(10) UNSIGNED NOT NULL,
`points_per_sec` FLOAT(10) UNSIGNED NOT NULL,
`width` TINYINT(3) UNSIGNED NOT NULL,
`height` TINYINT(3) UNSIGNED NOT NULL,
`bombs` TINYINT(3) UNSIGNED NOT NULL,
PRIMARY KEY (`id`)
) COLLATE='utf8mb4_general_ci' ENGINE=InnoDB;
25 changes: 22 additions & 3 deletions SQL/bandastation/database_changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,36 @@ Any time you make a change to the schema files, remember to increment the databa

Make sure to also update `DB_MAJOR_VERSION_220` and `DB_MINOR_VERSION_220`, which can be found in `code/modular_bandastation/_defines220/code/defines/subsystems.dm`.

The latest database version is 1.2; The query to update the schema revision table is:
The latest database version is 1.3; The query to update the schema revision table is:

```sql
INSERT INTO `schema_revision_220` (`major`, `minor`) VALUES (1, 2);
INSERT INTO `schema_revision_220` (`major`, `minor`) VALUES (1, 3);
```
or

```sql
INSERT INTO `SS13_schema_revision_220` (`major`, `minor`) VALUES (1, 2);
INSERT INTO `SS13_schema_revision_220` (`major`, `minor`) VALUES (1, 3);
```

-----------------------------------------------------
Version 1.3, 29 January 2024, by ROdenFL
Created the table: minesweeper

```sql
CREATE TABLE `minesweeper` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`date` DATETIME NOT NULL DEFAULT current_timestamp(),
`ckey` VARCHAR(32) NOT NULL COLLATE 'utf8mb4_unicode_ci',
`nickname` VARCHAR(32) NOT NULL COLLATE 'utf8mb4_unicode_ci',
`time` INT(10) UNSIGNED NOT NULL,
`points` INT(10) UNSIGNED NOT NULL,
`points_per_sec` FLOAT(10) UNSIGNED NOT NULL,
`width` TINYINT(3) UNSIGNED NOT NULL,
`height` TINYINT(3) UNSIGNED NOT NULL,
`bombs` TINYINT(3) UNSIGNED NOT NULL,
PRIMARY KEY (`id`)
) COLLATE='utf8mb4_general_ci' ENGINE=InnoDB;
```
-----------------------------------------------------
Version 1.2, 22 July 2024, by larentoun
Created the table: budget
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
*
* make sure you add an update to the schema_version stable in the db changelog
*/
#define DB_MINOR_VERSION_220 2
#define DB_MINOR_VERSION_220 3
4 changes: 4 additions & 0 deletions modular_bandastation/minesweeper/_minesweeper.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/datum/modpack/example
name = "Minesweeper"
desc = "Добавляет сапер"
author = "ROdenFL"
3 changes: 3 additions & 0 deletions modular_bandastation/minesweeper/_minesweeper.dme
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "_minesweeper.dm"

#include "code/minesweeper.dm"
Loading
Loading