mirror of
https://github.com/riperiperi/FreeSO
synced 2026-08-13 20:26:13 -04:00
- Added transaction logging in preparation for dynamic tuning - Added database-soured tuning system - Added motive overfill (see blog) - Added weather and particle system. Currently set to rotate levels of snow based on time. - The city's ground is now entirely snow! - Many misc shader and graphics changes.
25 lines
No EOL
981 B
SQL
25 lines
No EOL
981 B
SQL
ALTER TABLE `fso_transactions`
|
|
DROP COLUMN `time_last`,
|
|
CHANGE COLUMN `time_first` `day` INT(11) UNSIGNED NOT NULL AFTER `transaction_type`,
|
|
CHANGE COLUMN `value_per_hour` `value_per_hour` DOUBLE UNSIGNED NULL ,
|
|
DROP PRIMARY KEY,
|
|
ADD PRIMARY KEY (`from_id`, `to_id`, `transaction_type`, `day`),
|
|
ADD INDEX `fso_transaction_from` (`from_id` ASC),
|
|
ADD INDEX `fso_transaction_to` (`to_id` ASC),
|
|
ADD INDEX `fso_transaction_type` (`transaction_type` ASC);
|
|
|
|
CREATE TABLE `fso_tuning` (
|
|
`tuning_type` VARCHAR(128) NOT NULL,
|
|
`tuning_table` INT NOT NULL,
|
|
`tuning_index` INT NOT NULL,
|
|
`value` FLOAT NOT NULL,
|
|
`owner_type` ENUM('STATIC', 'DYNAMIC', 'EVENT') NOT NULL DEFAULT 'STATIC',
|
|
`owner_id` INT NULL DEFAULT NULL,
|
|
INDEX `tuning_by_owner` (`owner_type` ASC, `owner_id` ASC));
|
|
|
|
CREATE TABLE `fso_dyn_payouts` (
|
|
`day` INT NOT NULL,
|
|
`skilltype` INT NOT NULL,
|
|
`multiplier` FLOAT NOT NULL DEFAULT 1,
|
|
`flags` INT NOT NULL DEFAULT 0,
|
|
PRIMARY KEY (`day`, `skilltype`)); |