equal
deleted
inserted
replaced
858 |
858 |
859 |
859 |
860 -- this is kinda messy and gross (even more than usual), fix it up at some point |
860 -- this is kinda messy and gross (even more than usual), fix it up at some point |
861 -- it just assumes that if you have access to girders, it works for rubbers |
861 -- it just assumes that if you have access to girders, it works for rubbers |
862 -- as that is what the struc implemenation means due to construction station |
862 -- as that is what the struc implemenation means due to construction station |
863 if GameTime % 100 == 0 then |
863 if GameTime % 100 == 0 and CurrentHedgehog ~= nil then |
864 anyUIProx = false |
864 anyUIProx = false |
865 for i = 1, #sProx do |
865 for i = 1, #sProx do |
866 |
866 |
867 if sProx[i][1] == loc("Girder Placement Mode") then |
867 if sProx[i][1] == loc("Girder Placement Mode") then |
868 if sProx[i][2] == true then |
868 if sProx[i][2] == true then |
1043 } |
1043 } |
1044 |
1044 |
1045 |
1045 |
1046 local pMode = {} -- pMode contains custom subsets of the main categories |
1046 local pMode = {} -- pMode contains custom subsets of the main categories |
1047 local pIndex = 1 |
1047 local pIndex = 1 |
1048 |
|
1049 local genTimer = 0 |
|
1050 |
1048 |
1051 local CGR = 1 -- current girder rotation, we actually need this as HW remembers what rotation you last used |
1049 local CGR = 1 -- current girder rotation, we actually need this as HW remembers what rotation you last used |
1052 |
1050 |
1053 local placedX = {} |
1051 local placedX = {} |
1054 local placedY = {} |
1052 local placedY = {} |
1239 else |
1237 else |
1240 checkForSpecialWeaponsIn = checkForSpecialWeaponsIn - 1 |
1238 checkForSpecialWeaponsIn = checkForSpecialWeaponsIn - 1 |
1241 end |
1239 end |
1242 end |
1240 end |
1243 |
1241 |
1244 genTimer = genTimer + 1 |
1242 if GameTime % 100 == 0 then |
1245 |
|
1246 if genTimer >= 100 then |
|
1247 |
|
1248 genTimer = 0 |
|
1249 |
1243 |
1250 DrawTag(1) |
1244 DrawTag(1) |
1251 |
1245 |
1252 curWep = GetCurAmmoType() |
1246 curWep = GetCurAmmoType() |
1253 |
1247 |