This commit is contained in:
2023-05-07 13:27:32 +09:00
parent 339e95dbc3
commit 228303a3d0
24 changed files with 1908 additions and 11 deletions

8
PHI-PB/.editorconfig Normal file
View File

@@ -0,0 +1,8 @@
root = true
[*]
indent_style = space
indent_size = 4
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false

1597
PHI-PB/.luacheckrc Normal file

File diff suppressed because it is too large Load Diff

6
PHI-PB/changelog.txt Normal file
View File

@@ -0,0 +1,6 @@
---------------------------------------------------------------------------------------------------
Version: 1.1.0
Date: 2022-12-01
Added:
- Player Bonus

96
PHI-PB/config.lua Normal file
View File

@@ -0,0 +1,96 @@
local items = {
['manual_mining_speed_modifier'] = {
enabled = true,
val = 2
},
['character_running_speed_modifier'] = {
enabled = true,
val = 1
},
['manual_crafting_speed_modifier'] = {
enabled = true,
val = 5
},
['character_reach_distance_bonus'] = {
enabled = true,
val = 10
},
['character_resource_reach_distance_bonus'] = {
enabled = true,
val = 10
},
['character_build_distance_bonus'] = {
enabled = true,
val = 10
},
['character_item_pickup_distance_bonus'] = {
enabled = false,
val = 0
},
['character_loot_pickup_distance_bonus'] = {
enabled = false,
val = 0
},
['character_item_drop_distance_bonus'] = {
enabled = false,
val = 5
},
['character_inventory_slots_bonus'] = {
enabled = true,
val = 100
},
['character_health_bonus'] = {
enabled = true,
val = 200
},
['worker_robots_speed_modifier'] = {
enabled = true,
val = 1.3
},
['worker_robots_battery_modifier'] = {
enabled = true,
val = 1
},
['worker_robots_storage_bonus'] = {
enabled = true,
val = 1
},
['following_robots_lifetime_modifier'] = {
enabled = true,
val = 1
},
['character_trash_slot_count'] = {
enabled = false,
val = 20
},
['mining_drill_productivity_bonus'] = {
enabled = false,
val = 0
},
['train_braking_force_bonus'] = {
enabled = false,
val = 0
},
['laboratory_speed_modifier'] = {
enabled = false,
val = 0
},
['laboratory_productivity_bonus'] = {
enabled = false,
val = 0
},
['inserter_stack_size_bonus'] = {
enabled = false,
val = 0
},
['stack_inserter_capacity_bonus'] = {
enabled = false,
val = 0
},
['artillery_range_modifier'] = {
enabled = false,
val = 0
}
}
return items

19
PHI-PB/control.lua Normal file
View File

@@ -0,0 +1,19 @@
local config = require 'config'
script.on_event(defines.events.on_player_created, function(event)
if event.player_index == 1 then
for k, v in pairs(config) do
if (v.enabled) then
game.forces.player[k] = game.forces.player[k] + v.val
end
end
end
end)
script.on_event(defines.events.on_player_died, function(event)
local player = game.players[event.player_index]
if (player.character) then
player.ticks_to_respawn = 120
end
end)

14
PHI-PB/info.json Normal file
View File

@@ -0,0 +1,14 @@
{
"name": "PHI-PB",
"version": "1.0.2",
"factorio_version": "1.1",
"date": "2023-05-06",
"title": "Phidias Player Bonus",
"author": "PHIDIAS0303",
"contributers": "",
"homepage": "",
"description": "",
"dependencies": [
"base >= 1.1.0"
]
}

View File

View File

View File

View File

BIN
PHI-PB/thumbnail.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB