mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-26 14:31:59 +01:00
OpenDream linting (#16468)
* I wanna set the universe on fire * dfsaaf * setup * dir issue? * dsf * Perhaps the script * saf * cry * pain * sdfas * Try reintroduction of tag-matcher * Failed * Tries to suppress dotnet compile warnings * Like this maybe? * woopsie * Damn pathings * Hate * Pragmas * unlint? * Maybe? * GDI * Redundant ifdef removed and changelog * Did I forgot the tag matcher, or it was still broken? * Yea no that script is still broken * Removed tag-matcher as requested * *sigh* * test * bro what? * hope * just fixing the input * Let's see if we catch it...
This commit is contained in:
@@ -201,30 +201,29 @@ it should be avoided in favour of manual removal where possible
|
||||
if (!target || !modifier_type)
|
||||
return invalid_creation("No target and/or no modifier type was submitted")
|
||||
|
||||
switch (modifier_type)
|
||||
if (MODIFIER_EQUIPMENT)
|
||||
if (!istype(target, /mob))
|
||||
return invalid_creation("Equipment type requires a mob target")
|
||||
if(modifier_type != MODIFIER_CUSTOM)
|
||||
switch (modifier_type)
|
||||
if (MODIFIER_EQUIPMENT)
|
||||
if (!istype(target, /mob))
|
||||
return invalid_creation("Equipment type requires a mob target")
|
||||
|
||||
if (!source || !istype(source, /obj))
|
||||
return invalid_creation("Equipment type requires an object source")
|
||||
if (!source || !istype(source, /obj))
|
||||
return invalid_creation("Equipment type requires an object source")
|
||||
|
||||
//TODO: Port equip slot var
|
||||
if (MODIFIER_ITEM)
|
||||
if (!source || !istype(source, /obj))
|
||||
return invalid_creation("Item type requires a source")
|
||||
//TODO: Port equip slot var
|
||||
if (MODIFIER_ITEM)
|
||||
if (!source || !istype(source, /obj))
|
||||
return invalid_creation("Item type requires a source")
|
||||
|
||||
if (MODIFIER_AURA)
|
||||
if (!source || !istype(source, /atom))
|
||||
return invalid_creation("Aura type requires an atom source")
|
||||
if (MODIFIER_AURA)
|
||||
if (!source || !istype(source, /atom))
|
||||
return invalid_creation("Aura type requires an atom source")
|
||||
|
||||
if (MODIFIER_TIMED)
|
||||
if (!duration || duration <= 0)
|
||||
return invalid_creation("Timed type requires a duration")
|
||||
if (MODIFIER_CUSTOM)
|
||||
//No code here, just to prevent else
|
||||
else
|
||||
return invalid_creation("Invalid or unrecognised modifier type")//Not a valid modifier type.
|
||||
if (MODIFIER_TIMED)
|
||||
if (!duration || duration <= 0)
|
||||
return invalid_creation("Timed type requires a duration")
|
||||
else
|
||||
return invalid_creation("Invalid or unrecognised modifier type")//Not a valid modifier type.
|
||||
return 1
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user