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

APNW slider can be set to zero now #2511

Merged
merged 5 commits into from
Aug 18, 2023
Merged
Changes from all commits
Commits
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
10 changes: 3 additions & 7 deletions nsv13/code/modules/overmap/armour/nano_well.dm
Original file line number Diff line number Diff line change
Expand Up @@ -358,14 +358,10 @@ Starting Materials
return
var/adjust = text2num(params["adjust"])
if(action == "power_allocation")
if(adjust && isnum(adjust))
if(isnum(adjust))
bruhlookatthisdood marked this conversation as resolved.
Show resolved Hide resolved
power_allocation = adjust
if(power_allocation > maximum_power_allocation)
power_allocation = maximum_power_allocation
return
if(power_allocation < 0)
power_allocation = 0
return
adjust = CLAMP(adjust, 0, maximum_power_allocation)
return
switch(action)
if("iron")
if(material_tier != 0)
Expand Down
Loading