mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 04:21:41 +09:00
Added watch to allow optimistion
This commit is contained in:
10
expcore/store_test.lua
Normal file
10
expcore/store_test.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
local Store = require 'expcore.store'
|
||||
|
||||
Store.register('force.mining_speed','force',function(force)
|
||||
return force.manual_mining_speed_modifier
|
||||
end,function(force,value)
|
||||
force.manual_mining_speed_modifier = value
|
||||
game.print(force.name..' how has '..value..' mining speed')
|
||||
end)
|
||||
|
||||
Store.watch('force.mining_speed','player')
|
||||
Reference in New Issue
Block a user